Uripath ugliness

Solves #1623 in a more generic way

See https://dev.metasploit.com/redmine/issues/7692

Also adds better handling of hardcoded resources by adding a new method, `HttpServer#hardcoded_uripath`