support for handling file uploads

This adds handling of file uploads by Base64-encoding the content and storing it in the session.
Would it be possible to make the tempdir configurable? We once had issues when we had multiple Symfony2-projects on the same server.