Mainly work on the jquery mobile UI.

Also api.py is now just a module loaded by kraft.py, more in-line with the original roadmap for the project.