refactored sensor and actuator inheritance
using ng-click instead of jquery event listeners, so this way angular will remove the listeners automatically upon directive destruction -- trying to do things the angular way, trying to have fewer lines of code