Use resources instead of just urls

The URL and its credentials were previously kept separate. This combines
them into the Resource object, updating naming and spec tests as necessary.

Fixes https://tickets.puppetlabs.com/browse/RAZOR-351