Added cliapp

Added cliapp - a framework for command line applications - and changed
bitia so that it uses it.