Improve REDUX API
API mostly complete now.
Refs #301
Add some command line tools.
Simple command line tools to help the development.