Small URls parser and generator