Refactor directives to use scope. Model objects are supplied via the 'model' property