Almost any kind of molding should be istalled so it is removeable and this includes base moldings. Nails are the way to go. If you want to fill small gaps and if it's appropriate with your finishes, you can use paintable caulk to fill small gaps between the wall and the molding or at molding joints.