Peers seeding when already complete and minor fixes

* Emit ready event after creating pieces, even if the torrent is already complete
* Added require statement for path module in torrent.js
* Bugfix in piece.setData - moved assignment of 'self' for use in log message