add setup.py
convert README to rst
split headless baseclass from input
service registry instead of global app
some tests
configure testing environment