using uri_base for apps not mounted in root
replacing uri_base with uri_for

replacing the method uri_base with uri_for as per bigpresh advised.
Merge pull request #12 from mopi/master

URL change for apps not mounted in root