The 2004-2006 outburst and environment of V1647 ORI