Updating lib to use latest items and groups api changes. Fixing unit tests.