Added smarty 3 compatibility to SmartyTask.
Removed trailing whitespace from SmartyTask file.
Removed debug outputs.
Merge pull request #205 from JostBaron/master

Added Smarty 3 compatibility