Java7 support with DynamicDataSource

Would not compile due to java 7 having DataSource which is not backward
compatible. Fixed for java 7 support.

Also added unit test for ensuring that RsaKeyPair storage/retrieval is
being handled correctly.