Add scalariform and format all scala sources

I have added scalariform and formatted the current Scala source files. As there are lots of changes I wanted to make sure that everything is OK for you.