Merge pull request #68 from Walkman/refactorings

Refactored commands, should not affect funcionality
Restrict delete to public or current schema the same way as in case of save
Merge branch 'restrict_delete' into shared-models-v1