Added isHTTPMethod, completd createSession, started core apirequest logic