Updated version
Split into "core" and "webapp" modules for easier portability
Fixed a couple of synchronicity issues