Added Grunt tasks for building, JSHint and testing. Fixed bower dependencies and other stuff.

Change-Id: I4474890848d84e133f3a5f6427f047f926185119