Added absolute path support to view.php

To avoid confusion, I added absolute path support by creating a few
methods that returns the absolute path of a css,js or an image file.