Ribbons, coideals and the reflection equation