registration template, gruntfile refactor