fixed cascade operations on entity removal
added get_uri_token() to PW_Token