Fix routing bugs, add static file handler