Add main command.
Adjust log and cache settings.
Make setup.py work.