well 4,700 seems like a rip to me depending in what is included.
you should pay no more than 2,600 for JDM H22 with shipping. actually prices seem to be pretty low now and they should be able to charge you less say 2,300 with shipping. as for labor $800-1000 is what a motor swap generally runs and about $400 for the 5sp swap and no more than $600 for 5sp parts.
now if this includes all new maintenace items like timing belt/water pump and misc other things that should be done than that is a good price. otherwise they aren't doing you any favors.