v-yarotsky/MovieClub — pull request #11 by v-yarotsky (2013-11-03 23:49:55+00:00)
Title: User Authentication (primitive and quite insecure)

* Moved api-related controllers under /api
* Extract MovieClub.BaseView and MovieClub.CompositeView

Use CompositeView for view containing (and managing) subviews.
Use `regisetSubview(subview)` when creating subviews and `removeSubviews()` in
`leave()`
Prefer `renderSubview(subview, selector)` to render subviews, it
uses `setElement()` on subview, which triggers `delegateEvents()`,
thus event bindings are preserved

* Add some logging

To enable rendering-related logging, set
`MovieClub.renderLoggingEnabled` to true
To enable session-related logging, set
`MovieClub.sessionLoggingEnabled` to true

* Update CSRF token on login & logout

Gotta move towards token-based auth in nearest future.