fix structure stuff
Pyflakes cleanup and base Plone code not redone from scratch
test suite
Added tests and documentation