refactored to work with express v4.

Possible reimplementation of cli in python.