Move cmake functions into their own files.  Also, start adding in some compiler defines and begin work on building Stan models.