created simple remotestorage request lib to simplify some of session lib code