Just build the cap list once, fix memory leaks

Not sure what this originally was supposed to do, but clicap_find is
normally called multiple times per cap request per client, so this makes
no sense at all.
Merge pull request #3 from Adam-/unreal34+cap

Just build the cap list once, fix memory leaks