Style updates
More style cleanup

- Move functions in cliserv.h to a separate file
- Get rid of u32 and u64, replace by uint32_t and uint64_t