Implement a logger to log to error_log
OCS API for server-to-server sharing
fix unit tests
add debug output