Merge pull request #296 from mitya57/smarty-fixes

Smarty extension fixes
Add .travis.yml for continuous integration