adds facts api endpoints
Adds decorator which provides wrapper to send json responses with t the correct mimetype