Add a views counter to collections and a couple of bugfixes.