Finding accounting hash by key, de-pointerizing accounting_id and adding...

... accounting ids dynamically
Think this should len of substr up to first terminator ('/', ' ' or '\0'), not entire uri.len.