added hook friendship preprocess to get info about the instance
Merge branch '7.x-2.x' of github.com:QScience/patterns_server into 7.x-2.x