support permissions as field metadata
fix getView(name) so it actually uses the name param
Merge pull request #3 from bpmsols/develop

2 changes: added field permission metadata and a bug fix for getView(name)