Trim down the activity dictionary keys and values to be somewhat more readable.
Refrain from iterating over a mutable array as much as possible.
Move the keys and values for the Activity API outside of the Activity class.