Clean up code base

The new warnings of 2.11 made a great deal.

- Removal of unused code
- Change var to val when possible
- Remove unused imports
Fix warnings reported by -Xlint

Including:
- postfix operators
- reflective calls
- implicit conversions
- side-effecting nullary methods
Merge pull request #544 from sschaef/t-fix-warnings

Fix warnings