Feature/login api

Initial Commit of Login API.
why strip? also, how does this delete it? if I recall correctly, just "del session_cache[session_id]" should delete it from session_cache, although I'm unsure of if it needs deleting from elsewhere