BLI: Add two helpers to search a given string in an array of strings.
New python API for units handling.

Exposes all supported unit systems & types, and to_value()/to_string() functions.

Reviewed and enhanced by CampbellBarton, many thanks!

Differential Revision: https://developer.blender.org/D416
Add a first basic set of tests for the new bpy.utils.units module/API

Only contains 'LENGTH' type tests currently.
Fix some loss of precision in BKE's unit code.

When converting text to value, units' "value" had only 6 digits of precision,
leading to annoying loss of precision esp. when mixing big and small units
(like e.g. miles and inches).
Bake-API: allow custom UV to be baked

Note: the custom UV option is only available when calling the operator
via a script. It's currently not exposed in the UI since it's intended
to be used by scripters

To test it:
bpy.ops.object.bake(type='UV', use_clear=True, uv_layer='MyNewUV')

Reviewers: campbellbarton

Differential Revision: https://developer.blender.org/D546
Disable cubins for OSX buildbot

This is a temporary solution in order to get at least
rest of the blender begin up-to-date on the buildbot.

To be able to compile cubins again we need to switch
OSX builder machine to OSX 10.8 and CUDA toolkit 6,
which might take some time, unfortunately.
Fix memory leaks in subsurf
Correct casts for IS_EQ and other macro tweaks
- ensure GET_INT_FROM_POINTER us only used to get values
- rename STACK_POP_ELSE -> STACK_POP_DEFAULT
Fix for weak floating-point number comparison.

Was causing assertion failures in MinGW-w64.
Transform: PET only treat faces as connected diagonally across quads

Was an intentional change, but worse for concave ngons, resolves T40675
Quiet warning
Resolve memory leask with reports on initialization
Code cleanup: replace 0 with OB_MODE_OBJECT
Transform: PET quick checks to speedup wire-only edge case
Code cleanup: de-duplicate flag check in ED_object_toggle_modes
Code cleanup: replace direct operator calls with ED_object_toggle_modes
Hopefully fix compilation with old MSVC2008/WIN32...
Code cleanup: use bool instead of int