Add support for Equals function and Condition.

Equals and Condition are often used to conditionally
build resources.
Merge pull request #66 from kernelwaste/master

Add support for Equals function and Condition.