Moved error logging to log.js. Added test config files.