Updated junit to 4.11.
Fixed compilation errors.
Imroved connection error handling on client.
SyncTask tests
Simplified NettyConnection.close
Renamed HearbeatCheckTask test