Configure all the things needed to get courts-api into preview

More detail in commit messages. :sunny: