remove duplicate functions
add compile method to compiler
add missing template
add text extension to dahubridge
refactor the Screencast controller

The screencast controller is now THE controler for manipulating
screencast model and project. Changes from this refactor includes:

- add load, create, save, close methods to the controller
- cleanup dahuapp and upgrade to use the controller
- add generate methods (use the Compiler)
- performance improvements
- bug fixes
Modify image type and add a kind to object
Modify posX into posx
Merge pull request #74 from dahuapp/next-show-object

Next show object
Add events to object to implements dragging
Set view tooltip draggable
Set mouse view draggable
Apply change in calculating new coordinates