Fix error in vmc login when no target file exists

- refactor #targets_info and #target_info
- add tests for methods that read/write the target and token files

Change-Id: Icaf46f855a111abb5de19e8ce0c22213c56e523e