Random wartremover and lint cleanups

Lots of minor tweaks based on -Xlint and enabling wartremover.

I would like to switch -Xlint on permently but it falls over on some of the akka code (inference of any).
I'll add comments on the various changes so you can see what they are based on.
Wartremover dislikes calling .get (exception possible) - technically its not possible here because of the earlier guard, but I decided to refactor it)