Add initial version of Python back-end

Add the Python back-end. Currently it only supports "JSON mode" for
storing/reloading sessions. MySQL support is in the works.