Implements basic architecture, and facebook authentication