Cleaned all legacy stuff in resutil module.

Also moved some generic utilities from rest to restutil.
Merge pull request #259 from Dicebot/rest_cleanup

Cleaned all legacy stuff in resutil module.