Added logging

Cleanup for dev code, added logging to most routes.