Update grunt and adjust code for use of API v0.4.x