adding grunt cli for travis-ci
a small amount of work towards cleaning up the cli
added a test for the optimization step