Added some functions to use in theme, Fixes #4

relations can be easily fetched in the template files using
cptr_get_relations and cptr_get_relations_ids functions. First function
will return the posts and the second one will return the ids.