Add cg_branch for branch instructions

    - Declared a couple of new functions in codegen.h
    - Replaced calls to cg_write_uword to cg_write_instruction for writing
      instructions.
    - Rearranged function declarations in codegen.h to reflect