Lots of fighting with scala, started working on persistent scheduler state storage.