Add a module parser

First step on the way to support large projects.