mattdrayer/api-modulestore-direct: Added utility method

@chrisndodge -- added the get_modulestore() utility method as we discussed -- let me know if it needs any tweaking.  The unit test mod is unrelated to the method, but was failing when I ran the suite.