Sections 2 to 16, inclusive, of this act apply only with respect to trust agreements for which a notice of default is recorded on or after October 1, 2013, and to a judicial foreclosure action commenced on or after October 1, 2013. The amendatory provisions of section 17 of this act apply only with respect to trust agreements for which a notice of default is recorded on or after October 1, 2013. The amendatory provisions of section 18 of this act apply only to an action commenced on or after October 1, 2013.