Move JSON handlers into a directory