cmd: Add -cpuprofile
Fix #32 Add leaving support for leader