refactor IDM xml configuration into config module and move IDM tests into idm/tests
Merge pull request #57 from anilsaldhana/master

see comments