Separately apply callback before opening menu

The html of the context-menu might contain angular bindings that need to be evaluated before the menu opens.
Merge pull request #26 from hupfis/patch-1

Separately apply callback before opening menu
Fixing #7 and other small changes
Merge