add grunt testing and stage code