basic static file server and api handler