Do save view in transaction block.
Merge branch 'development' of github.com:visgence/portcullis into development
Fix syntax/style errors as reported in jshint.
Add more unittests for models.
Add method to models, and fix but in Keys.

-Added a get_viewable_by_user to DataStreamManager in models.
-Fixed minor bug with Key's isCurrent method.
Added more unittest for models.
Added more fixtures for model unittests.
Remove DataStreamManager method no longer needed.
Change side_pane streams to use new validation.

Now uses check_access to make sure users are logged in and uses new
DataStreamManager method to validate which streams it should render.
Merge branch 'development' of github.com:visgence/portcullis into development
Fix style errors
Merge branch 'development' of github.com:visgence/portcullis into development
Use commit manually on update.
Add is_editable_by_user to more managers.

KeyManager, ScalingFunctionManager, DeviceManager, PortcullisUserManager
Add general permission check for editing objects.
Code refactor
Fix merge conflict in ajax.py
Fix syntax bug.
Make test fixtures their own file.
Make rebuild fixtures make more sense.