add 'extension' and 'useFullPath' options to allow filenames other than *.mustache

also, a slight reorganization and whitespace cleanup.