[869576] Initial logic + grunt/travis tests

Ref: https://bugzilla.mozilla.org/show_bug.cgi?id=869576