Core: added revert method which resets to the last synced state and let isTag() return gracefully with false if the given uid does not exist
CLI: added revert and accept 'note:' 'link:' and 'tag:' on command line for add