Merge pull request #6 from stianst/master

Fixed classloading issue when using custom idm entities from module
Publishing the IdentityManager instances for each configured realm.
Merge remote-tracking branch 'upstream/master'
Adding test case for the custom entities when using the JPA store.
Fix java.lang.ClassNotFoundException: org.jboss.weld.bootstrap.spi.Metadata when deploying war while server is running