Custom js gen feature support

Added addFeature and hasFeature, so we can make the custom js generators to include only needed code.
Work on a generator that generates js exacly like ocaml one is almost done.