more tests, some refactoring, starting to add vert.x
checkstyle fun and fixes