added .gitignore
several more fixes:
- correctly calculate the size of the string needed by the b64 functions
- free spid, spsecret, and spapplication
- commented out the addition of the newline to the end of the encoded string
  in cencode.c