fixing use of POST & PUT and adding support for serving static files