Map REST api to /rest URI, add support to static content.