Allow defs to be passed through to dot compile.

Allows options._def to have functions that can be used in templates.
Add check for options before using ._def, just in case it is undefined.
Merge pull request #119 from sebowles51/dotdefs

Allow custom defs to be passed through to doT.js compile.