Bases for permutation groups and related problems