Check for jquery version in CMS
Fixes a number of small, subtle bugs and assumptions
Converts over to generic foreign keys
Fixed overly selective css, unlock race condition

* Fixed bug where page would always issue an unlock even
  if it didnt' have the lock, resulting in it always breaking
* CSS locking style now works correctly after using just an id