Add more functionality to script.

The script can recursive scan a given input directory to search for .proto files. All founded files are written into a type map that consist of an index and the file name without proto extension.