Added support for subdirectory.

Just a little change. Edited all urls in the app to use site_url CI function so that the site url (including its subdirectiry paths) are always used.