Add basic endpoint pattern class implementations

This adds classes for commonly used endpoint patterns and a class for creating custom endpoint patterns.