client work
@ changed max cache pages from 128 to 4096
@ eliminated redundant call for GetBlockSize by storing
  last result (speed improvement)
+ added more past end of block checks (reworked)
+ added connection setup in some operation method that
  needed it
@ changed resend delay from 5 seconds to 1 second
@ changed unit test for cache read/write