Code cleanup and optimizations

- Removed double doctrine initialization
- Changed the default cache to array
- Using the composer autoload
- Separated the dev dependencies in composer.json
- Added php 5.3 as required