first steps towards play-json

This PR adds play-json formats for `AppsResource` and the events api. Subsequent PRs will port more resources to play-json.
This helper might make more sense if defined in `AppDefinitionFormats`.  It would still be available by importing `Formats._`.