Implement of fabrics for objects and actions

Added fabrics and changed structure of objects and actions.
Adapted the launch function in dahuapp.viewer.js.
Added factory to create action in json file

modifiaction of addAction function in dahuapp.js and launch function in dahuapp.viewer.js