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.