Make local storage compatible with the routes

Wrapped the file return in create-storage-object so we get the
mime type and the length.