Refactor main() function

Extract processing of commands which require an unlocked
vault into a separate function
Document commandMode fields
Move core 1Password vault types/funcs into a separate package
Move Plist files into separate package
Fix plist pkg test build