added an executable target for testing
refactoring

- modified config.c to use strtok_r and removed the temp struct
- changed req.c and b64enc.c to use static allocation where possible,
  cleaned up a little
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
initial pass at automake and autoconf
automake and autoconf support

- refactored configure.ac to perform realistic tests and test for the pam,
  json, and curl libraries and headers
- refactored Makefile.am to build the correct module filename and a
  command-line test program
- added sptest.c for command-line testing
- added all the autoconf and automake cruft to .gitignore
- renamed config.[ch] to spconfig.[ch], since config.h conflicts with
  autoconf's config.h
- added autogen.sh
removed usunsed variable
Merge pull request #1 from jlogday/master

Refactoring