You can also use Skeleton > Orient Joint to quickly adjust the axis orientation on your entire joint hierarchy. You'll probably still need to manually adjust individual joint local rotation axes to get exactly what you want using the steps Mike mentioned.