Add healthcheck endpoint, clean-up code.