Grunt init template

Use Grunt. + some refactoring.