Update Libraries to newest versions

Update Smarty & JQueryMobile to their newest versions (3.1.14 and 1.3.1 respectively).

The zip structure of JQM changed between 1.1.1 and 1.3.1 so the install script was modified & tested accordingly