format code
added DocumentViewUrlFilter to implement short URL for Document View
cleaned code up a bit