add http_query_string to handler

so the user doesn't have to reconstruct the string from the
http_query dictionary.

autopep8 applied.
remove helper functions. change rest_result to rest_send.
new version