* Moved all registers that are actually processor flags to 'flags'-variable
 * Use ClampedArray for canvas
 * Added injectable logger with multiple logging-levels
 * Some JSLint-ing.