PLD: consolidate URL generation to helper function and us in views and templates
Merge pull request #104 from onaio/url-cleanup

PLD: consolidate URL generation to helper function and us in views and t...