###*
 * Apeman query module
 * @name apeman.query
###
ap.query = ((query)->
  query.toQueryString = (data) ->
    return unless data
    params = []
    Object.keys(data).forEach (key) ->
      val = data[key]
      params.push([key, val].join('=') )
    params.join('&')
  query
)({})