Commit of test code from demo

From following http://buildnewgames.com/introduction-to-crafty/

This is slightly modified as I was trying to make it use a larger grid
and scroll with arrow keys. Couldn't get the arrow keys to work yet.