[BlackBerry10] Adding support for dependencies and permissions

cc @bryanhiggins