Fix build with Build.scala.

Use "sbt gen-idea" to update the project if libraries are added
Add project files to Git, remove build warnings
Re-add target folder to project due to compile errors
Enable test debugging