Get rid of everything except core functionality. Introduce sane interfac...

...es.