Bumped the minimum php version to 5.5
Removed some old hacks