add build system

- use npm for build system package management
- use bower for app dependencies like jQuery
- use grunt for build automation
Merge pull request #1 from steinsag/jasmine

Add build system
Merge the EndlessGame branch into master
Correct errors which were include in merge.
Rename player to figure
The class Figure was moved into an separate file.
The keyboard controller was moved into a separate file.