[feature] /auth/signup now can respond to JSON

Since I needed to signup by AJAX  I've added JSON handling for signup.