refactor: build cloud service as a static library

1. refactor: build cloud service as a static library;
2. add cloudservice start/stop USART cmd;
3. fix some bugs.