Add state to logging (which function to call, logging level, etc)
Add libz80e frontend (just a library), and support emscripten build