Fixed issues with closures in the routing class. Min PHP version changed to 5.4.0.