Basic config structure for HTTP listener
Move main.go functionality to core/ and rename
Minor reorg of config code