Initial checkin of some of the core code