Cleanup: PEP8 compliance
Restored `ajax_required` decorators
Simplified code
Added comment for later review
Cleanup: fixed import order
Moved `TreeItem` to `pootle.core.mixins`.
Cleanup: fixed module import order
Use a new-style class
Fixed wrong reference
Use a namespace class for referencing cached method names
Cleanup: coding style fixes