Switched to using HttpStatusCode for status codes in Rest API.

In addition if the return from the processing is a Rest object then the HTTP response code with be that of the Rest status code.

This addresses issue: https://github.com/NyxStudios/TShock/issues/660