[Hot Fix] Bug #568: SEO

This fixes an issue with URL processing and determining a collection.

It also generates FriendlyURL's that are processed properly by the UI, the current URLs do not translate to the canvas.

CodeReview: http://mrccodereview.cloudapp.net/ui#file:review=1242/version=13901