add helper function to get path. the code just from function "dispatch".
merge the params from REST requests.
check to get params from request_body() in function params()
Merge pull request #24 from lloydzhou/master

merge the params from REST requests.