Changed submodules to use rewriting instead of reference

This is more consistent with how kochiku's server handles submodules, and fixes problems where the cached version of the repo wasn't being used correctly.