Allow user to share by username

Changed models and test cases to allow for sharing with username lookup. The client should specify the settings in the settings file. Otherwise, `SHARE_BY_USERNAME = True` and `SHARE_BY_EMAIL=True` by default.
Signed-off-by: Sheik Hassan <solergiga@yahoo.com>