Josh has done this, he wrote about it here it should give you some idea :)