Add Checkstyle

Add a checkstyle config in order to more easily make sure that contributions meet guidlines.

Run using `gradle check`
The plugin complains about missing whitespace after a `}`, which is justifiable but could maybe be fixed in case this becomes a common construct at some point in the future.