Opening and closing of vials with screw caps at controlled torque combined with e.g. gravimentric solid and liquid dispensing for versatile sample, reaction, formulation preparation