fixes issue #222, creates roles in correct order

This commit fixes the issue on some systems in which the roles are created in the wrong order, and setup fails.  

It's not the fix for the stability issues @stu-salsbury  is currently having, but will keep some systems from having them in the future.

Tested with 20141110 build, no Java API change since previous.