Add support for grunt-cli and grunt 0.4

@Almad see changes, i think it's compatible with master version.