Extended complications functionality

Allowed taking two complications through any mixture of rolling or
choosing. Prevented refunding of rolled complications, added handling
for rolling an already taken complication. Refactored Javascript
functions.