big refactor that adds ctx to from_element and to_parent methods as first argument.

also move spyne.protocol.xml back to be a module