Fix lookup bug for multiple registries.

Improve and fix tests.
Fix multiple registries in the list method.
Merge pull request #3 from bower/lookup-bug

Fix lookup and list bug for multiple registries.