Added HasAttribute Extension

refactored a bit to use the HasAttribute.
No longer require endpoints to implement IController. This is for
upcoming support for SignalR Hubs.