More scala-ization.

Added event package to api

Added implicits package.