Added partials to the AMD module's dependency array

If AMD is set to true we find all partials defined in each template/partial processed and add them to a new dependencies array. That array is filtered to unique values that are not partials defined in the partials array.

With the current plugin AMD modules are not aware of their dependencies and rely on any partials used to be manually required or registered with Handlebars#registerPartial prior to executing the template or partial function. This resolves that issue by adding the partials as dependencies to the AMD module so that the AMD loader executes the partials registration when the template or partial itself is required.