Authentication and fixes

API no longer has Basic Auth support.
Log File has Download (/logfile/..) and API (/api/log/file/..) variants
Also includes some fixes I had lying around.