Handle ugly url targets
add download_remote_images_to_local site setting
Merge pull request #1653 from ScotterC/uri-addressable

URI adapter should use Addressable
Refactor SessionController#create, reduce complexity.