Add BaseAddress (/BASE) support to gyp's msvs ninja generator.

BUG=https://code.google.com/p/gyp/issues/detail?id=382
TEST=BaseAddress is respected and /BASE is present in generated ninja files.
R=scottmg@chromium.org

Review URL: https://codereview.chromium.org/65983003

git-svn-id: http://gyp.googlecode.com/svn/trunk@1794 78cadc50-ecff-11dd-a971-7dbc132099af
ninja/mac: Add more support for signing iOS binaries with ninja builds.

Support CODE_SIGN_RESOURCE_RULES_PATH, CODE_SIGN_ENTITLEMENTS
and PROVISIONING_PROFILE in xcode_emulation.py.

Code signing steps are:
1. copy ResourceRules.plist into binary bundle
2. determine best mobile provisioning profile from the binary bundle
   identifier (from Info.plist), and copy into binary bundle
3. create entitlement file based on template and provisioning profile
4. sign the code using the entitlements and resource rules files

Patch by Sylvain Defresne <sdefresne@chromium.org>

https://code.google.com/p/gyp/issues/detail?id=378
BUG=236517
R=thakis@chromium.org

Review URL: https://codereview.chromium.org/61773010

git-svn-id: http://gyp.googlecode.com/svn/trunk@1795 78cadc50-ecff-11dd-a971-7dbc132099af