Migrated non-project-setup code into separate file (tasks) which will be
refactored more later.

Added hooks to externally control the scala version and sbt version for
the build.