Added stager.py which works out the best relationships, and updated relations.py to more constistently store shared links