Bug 973454 - [settings] refactor App permissions panel with AMD pattern

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