removed build folder
Added scala plugin, moved stuff to scala/ folder.
Converted the bulk of the code to Scala