Merge pull request #20 from MikeMillerGIS/master

Restructured for consistency and calculated referer url for dev enviroments