Fix multiple problems with the Downtime related views

* Host status not being displayed on service downtimes
* Credentials for host/servicegroups and contactgroups
  were not applied correctly
* Added a filter to support filtering by host_state
  (needed due to the first fix here)
* some smaller cleanup

refs #4205
Fix rendering glitch for booleanImage columns in grids

caused by applying icon-X to the cell css classes, which set the display
mode of those cells to "inline-block", although it should be "table-cell"

fixes #4236
schema: update to 1.9.0, add upgrade scripts for fresh install upgrades

fixes #4309
Fix imports in crypt lib causing ssh commands to fail

This should fix the freezing interface when sending commands
over SSH. The reason was the missing RSA import and invalid
requires the Crypt/RSA.php (those were added by us and are
no fail of the original author)

fixes #4411
Fix selection being corrupted after grid reload

This commit fixes a bug where a grid reload can lead to invalid selections,
as the same rows are selected, even if there's a different ordering of objects
in the new dataset. Now the object_id columns are remembered and used
to determine if a page contains previously selected objects after a reload,
this is implemented in ObjectSelectionModel

refs #4452
Reenable BLOB filtering in UserPreferences by changing cachedPreferences content to SQL data

This avoids problems with too big AppState while editing user
preferences.

fixes #4003
fixes #4062
fixes #4063
Fixed singleton refreshTask for MetaGridPanel

The function requestTask was created as a singleton on object
definiton, which caused all MetaGridPanels to share the same
function.

It is now created on the first refresh for the local scope.

(fixes #4563)
spec: require php-devel for php-pear (choice in el5)
Avoid SelectionModel SyncWithPage on a non-selectable grid

The notification Cronk has no normal selectionModel at the moment.

(refs #4452)
Multiple Fixes for combined host/service views

All credentials should now be working correctly with the views.

Thanks ossmon!

Also reverted some changes from
5dfc7d5f53d9a94a3876deef4f368b1cb379c9e8

(fixes #4205 #4239 #4241)
Fixed problems with combined host/services views in the legacy API

Some permissions do not match in split views in the legacy API.

Added ornull statements where required.

(fixes #4667)
updated CHANGELOG-1.9
Fixed Refesh button of a MetaGridPanel not to reset pagination to first page

(fixes #4685)
Fixed filter for StateType in OpenProblem Cronk

Thanks David Mikulski

(fixes #4317)
Fixed ConsoleCommandModel to escape single quotes correctly

(fixes #4455)
Fixed DISTINCT error on PostgreSQL when using customvar filters

Occured in host status grids.

(fixes #4564)
Fixed JS errors in Internet Explorer 8 while loading the interface

Caused by an event that shouldn't be fired at this stage.

Now calling the global layout function.

(fixes #4659, #4166)
Fixed host and servicedetails show only one contact under the "Relations" Tab

Caused by a weird Doctrine problem where the first column must
be the primary key.

After changing that it works.

A hell to debug -.-

(fixes #4222)
Fixed problem with Oracle schema for 1.9.0 - identifier too long

Just updated 1.9.0 schema, not issuing one for 1.9.1.

(fixes #4157)
Changelog and version update for v1.9.1