Optimized flash bags and twig extension

Increased new minimum PHP version to 5.4

* Made twig extension more modern
* Optimized flash bags template
* Flash bags now have deprecation support for "error" flash messages