Added doctrine framework.

Added basic configuration and test files for doctrine. Test MySQL table working.
Silex and its dependencies installed
Composer update
Fixed coding style
Added dump sql option for db update
deleted autoload
Updated Article to work with other Entities.
Added tests
Added Component Resource
removed test file (moved to test folder)
minor changes
Helper fixed single result in getNextId method

added method for getting template id.
Updated structure of calling the rest resources
changed database to able to create all resources appropriately.
Added todos.
Created gitignore.
Added flower js project
Added Article resource
Updated persistence classes
Check if given component exists
Check if given template exists