AngularJS directive which takes JSON representing a form and renders to HTML