add registerPartials function for loading all partials in a directory
Merge pull request #49 from martinrue/master

add `registerPartials` function to load all partials from a directory