Added skeleton for 'dump' command.

Moved 'api.py' out of 'load' into 'common' package, added 'log' module
to 'common' package. Modularized and cleaned up things a bit.