Fix for reading template name from options.

Previously it was always using base.html
Handle missing plugin folder
Added a test for options reading
Merge pull request #1 from mikkolehtinen/master

Added error handling, test & a bug fix for template name parsing