Move crash logging to new file: crashlogger.js