Convert to PSR-2 code style

Used [Code
Sniffer](http://pear.php.net/package/PHP_CodeSniffer/redirected) and
[PHP-CS-Fixer](https://github.com/fabpot/PHP-CS-Fixer) to do guide the
fixes to Mongodm.

Most fixes are related to spacing issues:

- tabs to spaces
- 4 spaces rather than 2
- space after function declaration
- etc...

There are some occasions where I changed private methods to protected to
better support issues related to prefixed _

There should be further refactoring to standardize method names to camel
case as most of the code is in camel case while deprecating malformed
methods. However this may be a further conversation due to issues
related to "appearing" like the PHP Mongo methods which use
non-camel-case.
Check for db connection or connect
Merge pull request #31 from jrschumacher/psr2-code-style

Convert to PSR-2 code style
Bump VERSION to 1.3.0
Change private methods and variables to protected
Fix phactory test case
Throw error on not connected
Merge pull request #35 from jrschumacher/fix-tests

Fix phactory test case
Merge pull request #34 from jrschumacher/feat-allow-extending-model

Change private methods and variables to protected
Fix issue when saving new record with '_id'
change filename of baseTest.php
Change visibility of 'exist' to protected
Add ability to get the model's  and MongoCollection
Fix class name
Add tests
throw error if  is not a MongoDB
Merge pull request #37 from jrschumacher/feat-get-connection-collection

Add ability to get model's connection as well as MongoCollection
Merge remote-tracking branch 'purekid/master'

Conflicts:
	src/Purekid/Mongodm/MongoDB.php
	tests/baseTest.php
Add aggregate support to MongoDB