unified URL variable
namespacing
lots of refactoring, and comments
[#11] only "detect" facebook based on the domain of the URL