appLog route setup moved to after middleware

otherwise the middleware were not being run
sockets code as a separate module now, remote logging works

capture _log events on server root url and emit a confirmation if data
has _confirm set

added tests for remote logging, sockets module and the stupid appLog
route mistake mentioned in last commit