APPSMALL-543: added parameters and scoping for lots of directives