fix bugs in events  namespace and name

dahuapp is not a correct namespace, replaced by app
using . is not correct for referring to events, replaced by :
improve media capture

- a capture now returns a capture object containing
  - the filename of the screen captured
  - the dimension of the screen
  - the cursor position
- we use Paths class for paths manipulation