styles: keep source and spec test units in sync

* adjust LiveScript StringArray style
refactor: extract functions and use angular.bind

* use $getRailsCSRF as a factory
* use named function instead of function as variable to reduce redundency
* use angular.bind to create event callback
* controller in directives will use $attrs directly
chore(release): v0.4.7