Add require php 5.3+ in composer.json
Modifications to make the entire code compatible with PSR-2