Using X-Auth-SID to confirm user authentication in the rest API
Added backbone models
Encapsulated cookie handling.