Support html5mode(true)

Added rewrite support to grunt in order to make #75 easier to handle.
Whats this?