Added friendship system and state machine, as well as most of the views and tests for the friendship system.