Update Views/SmartyView.php
Merge pull request #11 from chenly/patch-1

Update Views/SmartyView.php
updated the TwigView and Autoloader to use Twig Extensions path and included support for Composer
moved composer file to root directory
updated composer and twig view
updated slim extensions composer.json to require slim as a dependency
Fix for issue #14, in order for already initialized class to be loaded as an Twig extension.
Add timestamp log file writer
Add HTTP basic auth middleware
Add HTTP digest authentication middleware
Replace Slim_Log consts with integer values in TimestampLogFileWriter

Fixes #16
Csrf protection
Merge pull request #19 from miraage/master

CSRF protection
Use View::appendData() method instead of View::setData(), which in some setups can clobber the the View::data property
Changed log writer behaviour so it only creates a log file when required.
CSRF token stored in _SESSION #24
PHP <5.4 comaptibility fix for #25
Merge pull request #25 from mateusza/master

CSRF bug
Merge pull request #20 from ianvanness/patch-1

Use View::appendData() method instead of View::setData()
Changed the if statement to make it read more logical