[vagrant] Update Registry with #keys method.

This helper method to return the keys for the registry will give capability to eliminate some code. Example:

```ruby
keys = [] 
@subcommands.each { |k,v| keys << k }
keys.sort.each { |k| o.seperator "#{k}" }
```

Versus:

```ruby
@subcommands.keys.sort.each { |k| o.seperator "#{k}" }
```
Add unit tests for Registry#keys.
Merge pull request #2637 from johnbellone/patch-1

core: Update Registry with #keys method.