Added tickets data source and models.

Huge commit; will need a lot of refactoring.