Usual UI messages tweaks.
fix T40322: Glitch in baking a mixed SSS shader
BSD's was using too many build threads for convenience makefile

D431 from Aaron Peterson
Correct ortho_v2_v2 arg size
Fix T40373: Adding movie creates overlapping audio strips
PIL_time is no longer used in BLI_random.

The last remnant of using the system time for random seed was removed
in rBafb4b65, now seeds are always explicit for BLI_random.
Revert fix for T38594, caused T40186 (just accept limitation for now)
Fix T40379: world MIS causing too much CUDA memory usage.

The kernel for baking the world texture was the same as the one used for
baking. Now that's separate which allows the kernel to reserve much less
memory.
Cycles CUDA: use fewer registers for sm_50 cards for better performance.
fix T40375 Glossy shader bakes different than render

Comments from Brecht Van Lommel:
"""
Currently the viewing direction for each pixel is set to the normal, so
at every pixel glossy is evaluated as if you're looking straight at it.
Blender Internal works the same.
"""

This patch makes baking glossy as viewed from the camera.

Reviewers: brecht

CC: zanqdo

Differential Revision: https://developer.blender.org/D555
Cycles: new camera_direction_from_point

Reviewers: brecht

Differential Revision: https://developer.blender.org/D556
Fix T40344: Levels of Detail not smooth with Armature Modifier

Due to skinning changes for multi-threaded animations, the LOD check was
being done after skinning. Now the LOD check is run before animations.
This means the culling information is a frame old, but this should be
fine.
Fix T40387, image api save and pack did not fire notifiers.
Fix T40362: Projected texture from spotlight doesn't scale with spotsize when changed in-game via Python

GPULamp::winmat needs to be updated after the spot size has changed.
BGE cleanup: Remove unused KX_TrackToActuator::m_tracktime member.
BGE cleanup: Removing some potential memory leaks from KX_NavMeshObject when it fails to build a navmesh.
BGE: Accidentally committed some debug code in 8dafbe.
Fix 40343: Using replace mesh (e.g., LODs) on a skinned mesh crashes.

Need to use parent->AddRef() in a few places.
FCurve: Setting extrapolation needs to recalc handles
Fix T40388: 2.70a - Blender Render - Texture Stack - persistent checkbox state.

Reset 'use_texture' flag of a material tex slot when creating/assigning
a texture to an empty slot.