First commit. Adds localStorage locking, and message broadcasting.