Add logging for API endpoints
Closes #290
Merge pull request #308 from jembi/add-api-logging

Add logging for API endpoints