Fix #2, #7, #8, and remove trailing slash from urls