Major update, Application factory and Mocking support

Added support for Application factory (to be formally announced at
Dreamforce 2014)
Added support for ApexMocks (see other FF repo for more)
Updated to API v31.0

IMPORTANT NOTE: This library now requires ApexMocks to be deployed
ahead of it.