Link the angularJS library from the google CDN.
Moved the main application view to its own /read path, with its own controller.

The idea is that soon RESTful resources will only respond to JSON requests with raw data; it will be the responsability of the main application page (or other clients in the future) to render that data and include it in the view HTML. It is envisioned that the main app page will use angularJS for this.

Therefore it makes sense to separate json views, associated with proper RESTful resources, from the main application view, which serves a bunch of dynamic HTML which through AJAX retrieves JSON data about the resources.
Download the Angular javascript file only in the read view, which is the only one that uses it.
Use Angular js 1.0.8 (latest stable version) instead of 1.0.7.
Popup and sidebar partials are now under the views/read folder.

This makes sense because they are used to build the main application page, which is now views/read/index.html.erb.

In the future the view folders related to RESTful resources will only have json views and any partials necessary to render them.
Fixed partial paths to account for the change in commit 9654e16e1ccb889e0a364618f881c26e09c1ab83.
Marked part of the read view as an AngularJS app with the ng-app directive. Created blank coffee file for the main angularJS application.
Fix acceptance test.
WIP: transition to AngularJS.

For the moment I'm rewriting the sidebar partial. Currently it uses a hardcoded list of folders that are painted using angularjs. Next step, retrieve folders JSON from the server via AJAX.
Added FoldersController#index method and RESTful route.

This method returns a JSON list with the folders owned by the current user.
WIP: migration to angularjs. Retrieve the folders list from the server via AJAX.
Added FeedsController#index method and RESTful route. It returns a JSON list of all feed subscribed by the current user.
Fetch the list of feeds from the server via AJAX.
The JSON returned by FoldersController#index includes the special "all" folder, which is the
folder that will contain all subscribed feeds in the sidebar.
Feeds are retrieved in a JSON list via AJAX, and used with angularjs to render the sidebar.

Complex json views are used for FeedsController#index and FoldersController#index because the values returned in the JSON are not a simple JSON serialization of a model instance:

- in the case of folders, a special "all" folder is returned which doesn't actually exist in the database
- in the case of feeds, some of the fields returned are not present in the feed model but are retrieved from other models or method calls.
Added an AngularJS filter to show under each folder only feeds which are actually in it.

Currently the "All subscriptions" folder is not listing its feeds. I'm thinking it could be a good time to swith from the "all subscriptions" folder to an "uncategorized" folder, which would contain all feeds which are not in a folder.
Fixed i18n string.

It was broken when the main application page became views/read/index.html.erb
Specified dependency injection for the AngularJS controller, to prevent issues with javascript minification.
Use a custom angularjs function to filter which feeds appear in each folder.

Also fixed dependency injection into the controller to use the correct syntax and make DI minification-proof.
The "all subscriptions" folder is always shown first in the sidebar.