WIP - Reengineering

Making it event based and using storage api.
WIP

Mostly works except for google instant and profiles.
Version 3 RC1

Everything works on one computer.
Finished version 3

Main new feature is real-time sync.