Add swversion and androidsdkapi fields to actions, so actions can be
limited to a particular software version. If these fields are empty or
null then it is assumed there are no limitations beyond device for an
action.

Minor bug fix in relation to saving actions with no dependencies.