Bug Fixes and endpoint namespaces

Added block comments for methods
Fixed issue with passing an array to define a route
Fixed issue with emulateHTTP and getting the correct request query
Added namespace for endpoints