Submodules support
Added submodules test
Merge pull request #370 from jazzzz/submodules

Submodule support