Add support for programatically setting applicationId

This pull request adds support for programmatically setting the Application ID rather than requiring the Application ID to be set in the AndroidManifest.xml as described in https://developers.facebook.com/bugs/521189641264452.