a lot of small changes

rework logging
update JSDoc annotations
new json call method
move host logging to separate method enabling overriding
add static file server + correct CORS for info requests
rework test pages