Barclamp.import_template: Fixed template_id assignment

The template_id was never updated in the database, as it was only assigned to
the local template_id variable instead for the template_id instance attribute
Merge pull request #371 from rhafer/pull-req-master-a1ef985d4302e6bafb0affec8df3244c1693c984

Merged by devtool for cloudedge