Create library object, cache common methods.
Handle https in versionSource links
Move Index and Version helpers to Library.  Update tests.
Merge remote-tracking branch 'origin/master' into r2