Adds friends route and json formatted output