fixed file
redirecting requests from http to app using callbacks (broken)
fixed it (dirty)
made error wrapper to move away from httperrors to more general errors
removed file type dictionary in favour of mimetypes module