Added basic auth functions.
Added middleware for ignoring last trailing slash.
Added sanity test for decodeAuth().