Update dependency to smarty 3
Install and use composer and bower to manage external dependencies