Detect if LWP is installed and use that if so. Default to using curl for now.

Need to write a test case but this works.