MSSQL Integration / SQL Model abstraction

Should be just about perfected now. Had to alter the way the views were
generated so that they would work with MSSQL. Added some caching -
hopefully work on this more so we can start to see decreases in SQL
transaction time.

Note: CMS still only supports MySQL. That's because it's not using the
appropriate abstraction. It's on my list.