JERSEY-2449 Let Spring resolve beans using AutowireCapableBeanFactory, instead of handling various bean types manually. Adding test to verify that beans can be autowired.
JERSEY-2456 Test case that reproduces the bug. SpringDefaultProfileResourceTest sets no profile and the default implementation is injected as expected. SpringDevProfileResourceTest sets the dev profile, and expects the DevTestService to be injected.

SpringProfilesTest is included to show how it should work and *does* work.
Merge commit '07a2ce085da8c292901c024ae21a890b892c60cc' into task/JERSEY-2449
When calling resolveDependency, we must provide a list of bean names to support getting beans by name.
Renaming packages to make tests more obvious
Merge pull request #74 from vetler/task/JERSEY-2449

Resolved JERSEY-2449 and JERSEY-2456.
Added missing copyright header to SpringProfilesTest.

Change-Id: I0e242e097cca70571310acb0beeb0d722ee378d5
Signed-off-by: Marek Potociar <marek.potociar@oracle.com>