ยง 8106. Costs upon motion. Costs upon a motion may be awarded to any party, in the discretion of the court, and absolutely or to abide the event of the action.