Added two exceptions. Decoupled url generation logic from code
Fixed App a reference
Merge pull request #1 from slaith/master

Isolating url generation from code