Code documentation and refactoring
1. Added Doxygen comments where missing
2. Factored Goji message creation into common module goji_command.c
3. Request image size via extern_cmd thread during image transfer retry