base classes for backbone apps