Install foundation

fixed merge conflicts, all specs passing/pending