Added lock helper (similar to Script locking class)
Merge branch 'master' of github.com:clearos/app-base