Refactored server: now class-based views. Todo:authentication.