Added composer file and support for Symfony 2.4.x

Added composer.json per issue #1 and added support for Twig_SimpleFunction classes. Added exception handling to prevent fatal exceptions from being thrown if the extension property does not exist in the future.