[#10] Add pretty print for debugging purpose.
[#10] Some cosmetic changes to make rest api router more useable.