Copied Module skill planner related changes from https://github.com/sixones/vitality
I would have preferred to do a merge, but there were a lot of changes I didn't want.