update before server push

Connection now interfaced with String, not byte[]
cleaning
fix null ptr excep in JSON puts
defined the string encoding nicely in connectionTask
properly recreates HTTPURLConnection for each read/write
alert when server responds or JSON is parsed
nicer Thread.sleep code