Update Gruntfile.js

Add new replace part. This is still a very early draft/first shot, but yet seems to be promising since it does not suffer from the old limitations and allows us to define the exact order in which the replacement tasks will be executed.