Move the StatsApp class into the main JsonStats module so we can parse options without loading plugins

Closes #10 - parse options before loading plugins

Additionally, now parses the --port option parameter as an integer
instead of a string.