replaced 'item' with 'record' when appropriate
Added members, groups and permission functionality.
Not complete yet.
Permissions working now
Some bugfixes in permissions
Bugfix syncstore, idb wasn't overwritten when _rev conflicts on WS update.
Merge pull request #65 from tomvantilburg/master

merge from tom, permissions and bugfixes