Mongoid integration

This is tested to work with Mongoid 2 and 3.

Various Mongoid-specific errors are given status codes, and the base ```Mongoid::Errors::MongoidError``` class is also given its own ```to_xml``` and ```to_json``` for nicer error output.