General improvements.
- Added checkstyle and animal-sniffer to POM.
- Two things prevented Java 5 compatibility (String.isEmpty() and Locale.ROOT) have been changed; note dmclient API may still require Java 6.