Minor tidy up of the HTML code
Refactoring options
Fixed a function bug that was not binding the device value to the suggested function values
Moved type functions to a component scoped var so that we do not change the type structure
Added .device namespace to all classes
Fixed correct function form behaviour. Now form toggle when clicking to the function
Refactoring public methods
Completed refactoring of device component
Fixed test suite to work with the new component
Added extra tests on functions
Fixed little bug on test suite due to the deletion of device id
Merge branch 'feature/refactoring' into dev