clean up thermald and some init

Change-Id: I355bb8bfe30347b3429a7a84a9282bf3307d25ea