Finished first part of integration. revamped backend StudySettings as
well as the front end.