Add expectedsize param to download functions and datatypes.

If expectedsize is >0 and server reports a differenet size
for the target, then download is not performed.
LRO_URL and LRI_URL changed to LRO_URLS and LRI_URLS
Add GError ** param to lr_handle_setopt, lr_handle_getinfo and lr_result_getinfo.
Fix few compiler warnings