Altered HttpRequest and added dynamic loading of pages.

Added an onwait parameter to the getRequest function. Need to wrap
within a try/catch.