add protocol for link handlers

defines the expectations of post#publish
remove common Ruby standard library classes.

Prevent clutter from details which are irrelevant for refactoring and understandability.