ctx.js: Set default log file paths
Abstract index.html JavaScript into separate JS file

Issue #14.
ctx.js: Set fallback PID file path
Update file paths
aikosd.sh: Exit with last exit code