Code cleanup: use 'const' for arrays (blenlib)
Code cleanup: use 'const' for arrays (python)
Code cleanup: use 'const' for arrays (windowmanager)
Code cleanup: use 'const' for arrays (render)
Code cleanup: use 'const' for arrays (editors)
Code cleanup: use 'const' for arrays (bmesh)
Code cleanup: use 'const' for arrays (blenloader, gpu, imbuf, makesdna, modifiers, nodes)
Code cleanup: const args and arrays
Fix T34993: "Jump to Next Keyframe" shortcut not related to the timeline viewable keyframes

Made the timeline option to only show keyframes from selected channels/data be a
per-scene setting instead of the per-timeline option it was previously. This makes
it easier for animators working on rigs with multiple bones (especially during the
polishing phase), since now the timeline and jump to keyframe operators use the same
setting to decide which subset of keyframes they need to consider.

By default, this option is enabled by default.

TODO: Extend this to the keyframe status shading on the active object name in the 3D view?
Correct some errors in auto-cleanup
Code cleanup: style, unused import
View3D: Tweak GLSL preview, use only lamps enabled in active render layer and material light group.

This change makes lighting in GLSL preview more accurate, though it still
doesn't support material's "Exclusive" option.

Technical note: Changes in view3d_draw.c are not essential, these avoid
preparing unused shadow buffers.

Reviewers: brecht

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D457
Fix T39919: Collada export crashes blender when using a "Copy Location" constraint
Revert the testing sculpt openmp thread control and limit for OSX to physical threads as in 2.70a tag
Final overlooked cleanup for last commit
Fix T39921: Collada export creates invalid XML when using Track To constraint

Constraints are no ID...
Code cleanup: avoid warning about bit-shift outside int range
RNA: Use unsigned ints when bit-shifting
Editmesh: Update tooltips for vert/edge/face buttons
Fix part of T39692: Text fields in datablocks editor are broken

Text field part. Issue with enums dropdowns remains a mystery currently.

As for pointer fields, afaict they have never worked here, though it should
not crash.

UI_EMBOSS are values, not bitflags (own fault, most likely)...

Note we should probably get rid of UI_EMBOSST, it is used nowhere in UI code (set
in one place only, used nowhere).