Add JSON output mode, and fix all lint errors in main.py.

I haven't tested this due to not owning any EVE corps and not having any relevant API keys to use.