Quick note that Jen Field, a Program Manager in the AD team has posted a great set of articles on authentication providers in AD FS in Windows Server 2012 R2 including MFA and how to build your own.

There are 3 great articles:

Enjoy, these are worth a read.