Restructured source and dependencies. Moved model classes to model module.