Add Java API, reformat with Scalariform and upgrade to Play 2.2.2

Fixes #9