Type editor box

Implemented content type editor via adminBox element.
Considerable clean up of the code.