added parse_query
included api.lua with extract_params
included api.lua in autoswagger.lua
host now uses API
added params to parser and host
api -> endpoint
endpoint.endpoint -> endpoint.path