Updated client to handle new server protocol

Download should now read timestamp and size (doesn't check the match the
downloaded file yet), and enhanced error handling in transact. Needs
testing...