For towns, access keep, visit dungeon, use the sliders/arrow key to transfer prisoners. All so castles no need to visit keep, dungeon access is straight from the menu.
Now either keep them with you and eventually some may want to join or take them to the tavern district and sell.