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