cmd: Stripped down version of Python 3.3 cmd.py

This is a slightly stripped down version of Python's cmd module.

It doesn't support doc-string help (since micropython removes those)
It doesn't support completions yet