Upload and assetstore framework

This huge commit creates an initial assetstore framework and adds
chunked upload support and an HTML5 client uploader. Further
implementation of the assetstore model will be added in future
commits. The first assetstore type implemented partially here is
the filesystem assetstore, which simply stores files on the
filesystem.