Added support for trailing slashes on most URLs

Closes #754