Tests: A base class to test REST services and a mini code cleaning.
Added better support for IntegrityErrors. Added support for magic underscored keys in an HTTP query
Features : Added support for session, headers and URL queries as authentication providers.