Add Refs API.
Follow go json style.
Merge pull request #12 from joweeba/jc-add_refs_list

Add Refs API.