Testing and fixing

1. Added testdaemon build target which talks to mock-nationstates
2. Fixed problems revealed by running testdaemon against the python client