get nested routes for insert/update + refactor into _getUrl
implement beforeSend
add description of beforeSend to readme