Create a Jinja context object with parameters

Allow a template to call the function to set environment variables in
UserData.
Merge pull request #220 from huit/export-vars-to-instance

Create a Jinja context function to pass parameters