Add some more core code.

* Check if strings are valid input.
* Check if versions are valid.
* Add apt-install and apt-uninstall.