Update the student views to accept the email_opt_in parameter

Includes tests checking that the student views integrate with the profile API as expected.