Handle / & /wiki & /wiki/ URLs

https://wikia-inc.atlassian.net/browse/HG-438

It probably needs some beautyfing and I could use your suggestions.
This change is confusing to me, can you elaborate in a code comment.