Some novice additions to the query view... First step is to get binding working, next step is to create a directive backed by a controller that handles the logic of setting the right input type for the attribute type.
Added a function to create a dataQuery object for binding to the input elements in the query view