Fixed some warnings
(mostly implicint integer conversions)
Replaced NSAutoreleasePool with @autoreleasepool on server thread.
It's more efficient, and avoids leaks from forgetting to drain on return.
Merge pull request #1 from DouglasHeriot/master

Cleaned up warnings & NSAutoreleasePool