Overhauled and cleaned up the example, removing a lot of unused code, adding silex and twig for better separation of concerns.