Fixed session management and CSRF implementation. Closes #1.
Updated dependencies.