Remove debug output
Moved all json writing to a separate function, with error handling
Both python2 and python3 needs unicode support
Added support for multiple return encodings
Bug, moved debug print to log so it don't ends up in html page
Simplified
Error handling, if debug receives non-string
Clarified usage
Use db exceptions, more specific and clear
Simplified, better documentation
We can't serialise bytes() in python3, decode to utf-8 first
Remove debug output
Separated read and load for simpler debugging, clearer encoding
New debug framework, better control of what is logged. Replace print with log
New file for common functions - currently in basium_compability
Removed incorrect conversion to bytes
Remove unneeded code
Moved common code from _compability to _common file