ために is the adverbial form, whereas ための and べき are the adjectival/attributive form. Thus, the first one is used for modifying a verb or an adjective, whereas the second, fourth and the last is for modifying a noun.
すること has so many usages. Which one are you referring to?