Cleaning up the main Project API

Added the API to declare js_of_ocaml artifacts, but do not generate the corresponding Makefile fragments yet.