A little refactoring.
Convert project to use Silex.
Added js stub function for posting to server.