Minor changes for better interopability

Changes the asset URLs to be relative to the application installation directory on the server as well as uses PHP's stat() since 'stat -c' is not valid on BSD/OSX.