Add static method to parse out PageTitle from an internal link

Also added tests for the same. Does not handle fragment yet, but
it is extracted out anyway. Also does not handle URI Encoding,
which I think is best handled by doing it on the JS side.

Change-Id: Ie82cb3b9f5d12001ba57145a7f8dabe2ff186951