Raynes/refheap — pull request #89 by michaelklishin (2012-06-30 18:53:10+00:00)
Title: Migrate to Monger

Basically, shit compiles and nothing obvious breaks:

* Pastes can be created
* Pastes can be viwed
* Pastes can be listed
* Private pastes can be created
* Private pastes can be viewed
* I fixed a minor libnoir migration issue (an outdated require had to be removed)

I am not smart enough to figure out how to get Browser ID work with localhost or delete a paste but everything was straightforward enough. Please test how the session works and if we need to purge the old sessions collection data (I am not sure if `monger.ring.session-store` store works the way the old one does).

Along the way, 3 dependencies are gone: mongo-store, exploding fish, congomongo, all replaced by Monger and what it has out of the box.

There were some minor code changes to work around `monger.collection/insert` behavior (it does not return a map, instead, it returns a write result). I will probably add a new function that will work as CongoMongo's insert
and we can migrate to it.

I also noticed that there is a bunch of places that could dearly benefit from using [Validateur](https://github.com/michaelklishin/validateur). We can migrate to it later.

So, shit mostly works and if something doesn't, I blame it on the lack of a test suite. My codez are obviously perfect.

What are you waiting for? Press that "Merge This Pull Request Button", now!