moved backend and server logic from instance to their own classes
refactored instance to work with backend and server objects