Add Curry.swift, add tests for Functor laws
Ignore *.xccheckout files
Add initial instance of Applicative for Optional

Also moves some helper functions out of tests and into Prelude as public
functions.