Add openmetrics output
- Add support for openmetrics output format
- Attempt to fix #37 (closed) by resolving the server first if it is a domain
- Import escape function from html module instead of cgi (it has been deprecated in 3.2 and removed from cgi module in 3.8)