Changed REQUEST_URL to REQUEST_URI
Added a basic trait to add some functionality