Refactor java cookbook 

There are a few tickets here in various states:

* [COOK-2897](https://tickets.opscode.com/browse/COOK-2897) - reviewed (ready for merge)
* [COOK-2903](https://tickets.opscode.com/browse/COOK-2903) - reviewed
* [COOK-2904](https://tickets.opscode.com/browse/COOK-2904) - fix provided (needs review), commits f418739 and 30861f2
* [COOK-2905](https://tickets.opscode.com/browse/COOK-2905) - reviewed
* [COOK-2920](https://tickets.opscode.com/browse/COOK-2920) - reviewed