Generic support for variables in project templates + multi-template project generation

@umop

This CL is part of preparations for generalized combined template/Bower/Pub support.