Fixed handling null values in Sqlserver->value

The value function quoted a null value as N'' instead of NULL.
As a result is produced queries like [name] IS N'' instead of [name] IS NULL which resulted in an SQL error.
Quoting test for null value and string column
Merge pull request #1620 from ovidiupruteanu/patch-1

Fixed handling null values in Sqlserver->value().

Fixes #3768
Fix whitespace.
Add test for insertMulti with id in the last spot.

Both tests work, so there are no changes to the implementation.

Closes #4048
Fix CS.
Update afterSave() callback signature to be PHP5.4+ compliant.
Fix clearing groups with FileCache and no prefix.

If you used FileCache + groups + an empty prefix cached files would not
be cleared as strpos() would fail.
Merge pull request #1622 from bar/php54-afterSave

Update Model/Behavior afterSave() callback signature to be PHP5.4+ compliant.
Update afterFind() callback signature to be PHP5.4+ compliant.
Fixed setting of order in Paginator options when using model's order. Refs f680c76, #3902
Merge pull request #1623 from bar/php54-afterFind

Update afterFind() callback signature to be PHP5.4+ compliant.
add missing params for parent call
Merge pull request #1625 from dereuromark/master

add missing params for parent call
Merge pull request #1624 from ADmad/fix-paginator-order

Fix setting of order in Paginator options when using model's order. 

Refs #3902
Make the "pr" function use `printf` instead of `echo sprintf`
Merge pull request #1626 from ataylor32/pr-printf

Make the "pr" function use `printf` instead of `echo sprintf`
Replaced two elseifs by if in sqlserver datasource
Merge pull request #1628 from ravage84/sqlserver-elseif

Replaced two elseifs by if in sqlserver datasource
fix renderLayout and update deprecated and outdated code