Endpoint mop-up

Cleaned up the API endpoint to provide cleaner/nicer output. All your
backend is belong to us.