king safety patch

My patch passed stage 1 and stage 2 and I ask to merge it
http://tests.stockfishchess.org/tests/view/541b24fb0ebc5910e83abf68
http://tests.stockfishchess.org/tests/view/541b57300ebc5910e83abf73