[tkt-60] Fixes CSS & JS file permissions

Also fixed bug with missing templates from phar.