Initial commit of second build script. Adds friendships and constraints.

Adds friendship table. The implication in this system is that if person
X is a friend of person Y, person Y is also a friend of person X.

Adds various check constraints to the original tables.
Removed old todo comment
Added check for total number of sessions per user when logging in