fix 'init' command

- ensure configuration is available
- don't overwrite 'local_config' location from global
fix: check adapter is configured before building
feat: Inform authentication failed
feat: trim input before saving

When pasting some terminals like to add a leading space
making the authentication fail
Merge pull request #189 from sstok/minor-fixes

Minor fixes