Cleaning up Chessy so it can be used as a stand alone engine

All the stateless parts of the chess engine have now been ported to plain node and are tested using NodeUnit. Posting the game and player is a little more complicated because these should inherit from EventEmitter, work with promises etc.