Raw URL retrieval

** Changed deletion from 'r' to 'd'
** Raw retrieval by using /r/$URL
** Put the common url gets into a function