enable build time file writing

This set of commits enables writing received provisioning messages to file by introducing build time flag.