refactoring: implemented class Linking_Posts_Model with data representation
implemented basic theme function to get related posts and linking posts in a theme