Move sources to src, add getopt commandline options and environment support for nma api key