Add gem caching to the bootstrap process

Both Advanced and Extending require external gems. Let's cache them
locally, just like packages, and add a source to root's .gemrc