a lot of naming fixes. add test page for urlsegment