Make this extension composer ready.

Add composer.json
Modify extension and bring compability for work with composer-installed Smarty.

Now you don't need to set Smarty dir, it will be autoloaded via composer autoload.

Also need to update documentation. 

It still should work on 5.2, shouldn't it?