add DocAttribute class
Make BaseCollection take a class name instead of the class itself in the initialiser
get rid of .Doc part of DocClass names (eg DeviceDoc is now just Device) and make use of new DocAttribute and BaseCollection classes to avoid circular import
DocClass decorator now has no arguments (just use class_.___name__ instead)
fixes from unit test
edit unit tests
get class by name instead of passing in class value
bug fixes from unit tests