modularize the project (wip)
Added example as a standalone sbt project.