Separate client and library.

This repo will become the library component. I moved to version 0.4.0.0, because
there are API-breaking changes.