Include import subscriptions popup in the user_profile layout.

This layout is used in the edit registration view. This view is accessible while the user is authenticated; therefore the user dropdown with its "import subscriptions" link is visible. This means the popup markup must be included in the page, otherwise the link does not work.

Not that I expect many users to access it from this view, but if the option is present in the menu, it must be functional.
Ensure that when adding the first folder or feed to the root scope in angularjs, any ng-repeat directives are triggered.

To do this, if the added element (feed or folder) is the first in the array, the array is recreated as a new array with only that element. For some reason it seems that just pushing an element into an already existing empty array does not trigger ng-repeat directives. Maybe an angularjs bug?

This fixes the issue in which if a user who had no subscriptions added a subscription, it did not appear in the sidebar until the next page refresh.
Views detect that folders have been loaded from the server based on a boolean flag in the root scope.

This is more correct. The old way of detecting it, which was to check for the presence or absence of the folders list in the root scope, could fail in the case in which no folders were returned from the server.
Displaying certain view elements (unread count badges, entries list under folders...) is now based on the value of a boolean flag in the root scope.

The old way of doing it (checking for the presence of the feeds list in the root scope) failed in the case in which the server returned an empty feeds list. This is very relevant because this affected all new users, for whom some parts of the application did not display properly until the first page reload (e.g. the unread entries count in the "all subscriptions" folder wasn't displayed). This is very bad, a bad first impression could scare away those users for good.