The structure of the NGC 1333-IRAS2 protostellar system on 500 AU scales: an infalling envelope, a circumstellar disk, multiple outows, and chemistry