Some formatting changes. Early version of piece manager and sending dummy responses.
Added resetting expired request to 'Unrequested' state.
Completing pieces and continuing downloads.
Removed unsafeIOToSTM debug statements. They were causing nested atomically $ STM crashes.
added a read method, optimize reading and writing to use lower level memory operations, added methods which don't require use of ErrorT
Merge branch 'master' into piecereader
Merge branch 'piecereader' of github.com:clin88/HaskTorrent into piecereader