WIP. Added some tests, extended some WineApp functionality, began changing core model lookups to use slugs instead of IDs.