Added keep alive for connected peers
Pieces are now randomly downloaded. You can also resume downloads
Added transactions, Inserts are slow otherwise in a Sqlite database
added SHA-1 checks + repairs at download end
write blocks to database every once in a while instead of every time a block is written
write blocks to database every once in a while instead of every time a block is written
write pieces only when ready