Add findActiveItem and getSubmenu, safe parent_id field check. fixes #61 and fixes #62