Add thread contention monitoring.
Remove unneccessary import and commentted code.
Replace java7 Long.compile(...).
Merge pull request #179 from bpitman/master

Add thread contention monitoring