[#14] Python build script with support for building theme/gallery separately.

Also, split current Dojo build profile into two.
[#14] Use fnmatch for pattern matching.