Added support for template inheritance

Jade extends and blocks now work and a new option “resolvePath” has
been added. Test and fixtures and README change included.
Why are you using promise for a sync function?