Apply standard scala formatting. (#2650)

Formats all .scala files according to `scalafmt`'s (opinionated) style. 
Adds Travis checks for correctly formatted code.
7 files changed