Added overload to AddView to allow replacing a View.
Added Duplicate exceptions for end points and views, they both inherit from a commen one.