Rework the main.c to have command line switch parsing and loading the
API key from an external file.