move all init actions into one function
move all init actions into one function

GrimDerp/manatee,joyent/manatee,AmlingPalantir/manatee,josephglanville/manatee,josephglanville/manatee,joyent/manatee,GrimDerp/manatee,AmlingPalantir/manatee