Added Scala implementation for observer pattern.

The delegate classes have been tested and work pretty fine in Java as well.