Refactored opts into a module, to support further work in multiple frontends
Support for new frontends in libah/cli loaded through ah.conf