WuKong: A Proactive Management Framework for M2M Applications