Admin permission bit & bug fix

The three commits are pretty small and self explanatory. 

1) Admin bit added plus some comments to describe what permissions the different bits indicate
2) updated gitignore to exclude files for the PyCharm IDE
3) A bug fix in utils.js which fixed the problem of omitted subjects not getting added back in when a patch was created.