7.x code review

Merges latest video pack.
Applied Coding Standards.
Changed some comments.
Moved the preprocess function into theme/theme.inc

Tested and seems to be working well after clearing the cache.