Allow custom attributes in endpoints

Endpoint definitions can now contain custom attributes, which allows for, for example, certificate pinning