Fix access violation when painting with tiled textured brushes +
airbrush + small brush size.

Fast textured strokes meant that sometimes the update width (calculated
from stroke distance) would be greater than the new ibuf width. This
meant out of bounds access for the new ibuf.

It's totally strange that I couldn't reproduce this issue on older
versions since the logic here has not really changed much between
versions.
BGE VideoTexture: Fix for loading PNG (and possibly other) files.
BGE: Fixing shape key animations on meshes with no armature.

Their transverts were not being updated after code changes for
multi-threaded skinning.
Fix T40113: Skinned meshes with non-animated shape keys crashes the BGE.
Fix T40119, CUDA Toolkit version mismatch
Utility macros for linklist stack & asserts for bmesh
Replace inefficient use of strstr with STRPREFIX macro
Bake API: selected to active needs differentials or it renders black when bump/displacement (fix T40101)
Fix T40107: painting on a psd image crashes blender + style cleanup in file

The issue was that we can't assume we support the colorspace from the file. The reported file had an invalid colorspace in fact, which was leading to the segfault in Blender.

Thanks for Sergey Sharybin for the help here.
Cycles / CUDA: Increase maximum image textures on GPU.
Instead of 95, we can use 145 images now. This only affects Kepler and above (sm30, sm_35 and sm_50).

This can be increased further if needed, but let's first test if this does not come with a performance impact.

Originally developed during my GSoC 2013.
Quiet warnings with __CUDA_ARCH__ use
CMake: use project name when generating project files
Code cleanup: comment typos
Added BKE_freestyle_lineset_delete() by generalizing FRS_delete_active_lineset().
Freestyle: Added .new() and .remove() methods to the Linesets collection type.
Freestyle: Fix for the active line set index possibly invalidated after deleting a line set.
Freestyle: Added handling of a user-specified name for creating a new line set.
Quiet warnings
Remove unneeded comment.
Fix T40117: cycles sobol RNG issue when disabling __CAMERA_MOTION__.

This doesn't affect any actual release code since camera motion blur is enabled.