Moving cmdline package into library.
Add proper entrypoint.