builtin support for $form and $cookie using formidable, and fix bug on $scope.JSON