Update friendship to new appframework.