Add Checkstyle

Add a checkstyle config in order to more easily make sure that contributions meet guidlines.

Run using `gradle check`
Do the default options deny method names with `_` in them? If so, could you make this pattern accept *only* `_INVALID_` methods, rather than underscores in general?