add helper for registering net/http handlers