Add ability to add resources from libraries in :dependencies
Update template and sample
Remain backward-compatible with older projects