Minor change in comment.
WIP: fix updating of unread counts when clicking on an "all subscriptions" link (to read all feeds in a folder, or all subscribed feeds).

Previously the logic that updated these unread counts had two bugs:

- if the server returned a 404 (e.g. because all entries in the folder are read), the angularjs client displayed an error message, and it didn't set to zero the unread counts for the feeds in the folder, possibly keeping outdated counts in the view.

- if a feed in the folder has no unread entries when clicking on "all subscriptions", it is not present in the returned JSON (unless the "show read" button is clicked), and the angularjs client did not set its unread count to zero, possibly keeping an outdated count in the view.

Implemented: for "all subscriptions" links under a folder, both bugs have been fixed and regression tests implemented.

Not yet implemented: tests to check that the above bugs do not happen with the "all subscriptions" link that loads all subscribed feeds; implement a bugfix if necessary.
WIP: acceptance test for the unread entries count refresh when clicking on "all subscriptions" to read all subscribed feeds.
Minor angularjs change: make a copy of an array returned by an ajax call, before passing it to another function.

This ensures better data isolation.
Fixed loading feeds when clicking on the top "all subscriptions" link to read all subscribed feeds.

When the user clicks on this link, all feeds are retrieved via ajax in a paginated fashion, and unread counts are updated in the view. Previously there was a bug: if the ajax call for the first page of results was returned a 404 nothing was done, and the view was unchanged. The expected behavior is that all unread counts are set to zero (because getting a404 in the first page means that there are no feeds with unread entries at all).

Bug fixed, regression test implemented.
When clicking on a folder during acceptance testing, the test waits for feeds and folders to finish loading before clicking on the folder.

This is intended to avoid an error in which capybara clicked on the "all subscriptions" link (to read all subscribed feeds) while feeds and folder hadn't finished loading, which made the test fail because no entries etc were loaded. The fix is to wait for feeds/folders to be loaded before clicking on any folder.

As a side note, this behavior (allowing the user to click on "all subscriptions" before feeds have finished loading) is a bug, because it gives unexpected results (most of the time clicking on the link does nothing, instead of loading all entries). But it will be fixed in a separate issue and commit.
Keep acceptance tests from tring to check the unread count for a feed before the feed has been loaded by the angularjs client.
Fix acceptance test.

Removed a feed from its folder during acceptance testing using a helper method that mimics user actions to do this, instead of trying to do it directly in the model.