Lots of work on the build system.

Lots of work has been going on the build system, with finally adding
support for a config file. Also, replaced each \tab with 4 spaces.

Shikhin Sethi, draumr.shikhin@gmail.com