Refactoring function for getting all requests.
Refactored http request module. Moved to js/restman directory.