Reorganize variable initialization

- Move GPG handling into main script
  - Needed for -k option!
- Consolidate variable initialization
- Read configuration in variable init section