Router refactoring and test coverage

Change AddRoute signature to use ep structs, factor out functions for testability, add unit tests for said functions

Addresses https://github.com/openshift/origin/issues/403
I think this should follow the pattern of the other tests (and upstream) and do map[string]struct inside the test function.