Add thumbs extension, a thumbnail service provider

* define Thumbnail provider
* create Smarty thumbnail function using service
* convert phpthumb usagem and remove library