Move get_editable_by_user from manager to model

The methods from KeyManager, DataStreamManager, DeviceManager,
PortcullisUserManager, and ScalingFunctionManager were made to be
instance methods in their respective models instead.
Modify unittests for is_editable_by_user.
Merge branch 'development' of github.com:visgence/portcullis into development