Removed some dead code.
Switched from manual session locking/unlocking to using VaadinSession.accessSynchronously. This cleans up the code a bit and should make it even cleaner with Java 8 lambas.