Self-similar dynamics of a viscous wedge of fluid