Kam

Merge current REST work into master
Here I meant to use one property, which can be a class or package. Call it just `application` maybe? I don't strongly mind two but it just seemed less error prone to offer one thing to set rather than two, one of which must be set. We should be able to distinguish between class and package easily with reflection.