Remove Martini framework

Removes the Martini framework and replaces it with standard `net/http` constructs. This makes the code easier to follow and removes dependencies.

This means there's a bit more code, but given how simple and few the endpoints are I don't think we really lose much readability.