1110843: Lookup correct upstream cert from source stack.

Sub-pools originating from a stack have no subscription ID because they
technically could be from multiple subscriptions, causing Candlepin to return
no upstream certificate when thumbslug requested one to proxy a guests
entitlement.

When thumbslug fetches the upstream cert for an entitlement from a stack
derived sub-pool, we'll return the eldest entitlement in the host's stack that
is currently active.

Replace barren entitlement resource test with some actual tests for this
functionality.

Spec test author: William Poteat <wpoteat@redhat.com>

Conflicts:
	src/main/java/org/candlepin/resource/EntitlementResource.java
	src/test/java/org/candlepin/resource/test/EntitlementResourceTest.java
Probably best to use isBlank/isEmpty here.  In the other patch, subscriptionId came from a nested object that may be null, however here I think the database can give us an empty string for null values.  Probably best to support both