update settings_sample.py with commented out debut_toolbar app and enabled guardian app
deleted example REST scripts, these were old and all the new ones are in the ReflowRESTClient repo
clean up some code formatting, and a few Javascript semicolons
remove extra empty line at EOF
views.py:
- add django-guardian imports and try to add permissions when adding a new project

models.py:
- removed ProjectUserMap model, it will no longer be used for project permissions
- import django-guardian for more granular object based user permissions
- added abstract base class ProtectedModel to use for models which need to check permissions
- added permissions to Meta options of Project and Site models

admin.py:
- removed admin import of ProjectUserMap

api_views.py,
decorators.py:
- use obj permission methods instead of ProjectUserMap
models.py: just check for view project data and view site data permissions to qualify as a project user
- reword get_user_projects docstring
override ProtectedModel methods in Project model
settings_sample.py: add guardian setting to render the project's 403.html for permission denied

views.py: replace require_project_user decorator in view_project view with guardian decorator permission_required
views.py:
- view_project: add boolean variables for add & modify permission for user, passed to template to determine edit/add links

view_project.html:
- check for appropriate permissions before displaying add and edit links
update README with guardian and debug-toolbar reqs
base.html:
- don't load repository_filters

models.py:
- added Project model method get_user_permissions

repository_filters.py:
- remove user_project tag filter and add get_user_permissions filter

view_projects.html:
- change dashboard to show user project permissions instead of project stats (since the stats would have to be re-calculated based on user's site permissions)
add guardian permission_required decorator to edit_project view, remove edit_project link from all templates except view_project.html
views.py:
- remove unused subjects var from view_project view
- add guardian decorator permission_required to view_subjects

view_project_subjects.html:
- add permission checks for add and edit subject links
views.py:
- add guardian decorator permission_required to view_subject
- make sure subject_id belongs to project_id

Templates:
- update templates using 'view_subject' route to include the project_id argument

view_subject.html:
- add permission checks for add and edit subject links
Merge branch 'feature-object-permissions' of https://github.com/whitews/ReFlow into feature-object-permissions
views.py
- add guardian decorator permission_required to edit_subject
- make sure subject_id belongs to project_id

Templates:
- update templates using 'edit_subject' route to include the project_id argument
decorators.py:
- need a new decorator require_project_or_site_view_permission since the guardian @permission_required can only check one permission, we need to check project and site perms

models.py:
- BUGFIX:  in ProjectManager get_user_projects(), 'project_id' is an attribute of site, not a key

views.py:
- change uses of guardian decorator permission_required to require_project_or_site_view_permission
- in view_samples, filter sample by user's site view permissions
fix a couple formatting issues, and remove old commented code in view_project_panels
remove instance counts from view_project.html template, they would have to be re-calculated based on site view permissions, and I'm not sure if it's useful to have anyway, since the counts will be shown on the individual list views