Divide FaceRest (issue #156)

Divide the huge class FaceRest to some classes (issue #156).
I've extended RestJob (and renamed it to ResourceHandler) to do it.
Handler functions are moved to child classes of ResourceHandler.

This modification also fixes issue #237.

Even if we call ref() for the hash table, content strings are freed on exiting the callback.