Lock table/vis option available within table view

- Lock table/vis available within table view.
- Moved all dialog texts to dialog template.
- Added tests.

two things here:
- why we do this check here? why don't just disallow to open the dialog to non owners?
- if this is a constraint it should be in the model, like: this.model.lockBy(user)