Malaysian environmental and residents' groups are joining forces to buy swathes of forest in a desperate bid to save them from developers.