Minor cleanup

- remove useless javadoc (only @see)
- Java 7 diamonds
- remove unused logger
- remove casting
WICKET-5350 keep setObject for backwards compatibility
Small improvements for inputStream handling.