created test suite and initial backend

backend can receive a move and return AI-calculated move
added get_next_move_midgame test

scripts utilize the game.moves array and responds to both dwarf and
troll AI move requests
invalid moves reported by console.py

returns string 'invalid'

removed newlines at end of console.py
invalid moves reported more verbosely
Merge pull request #2 from hexparrot/backend

Backend
Merge remote-tracking branch 'origin/master' into socketio