Re added scarecrow code...

Re added the code that allows the scarecrow to scare away mobs, that
never got merged into the main branch.