Fix sub and unsub action; add application action (not finished)

Fix subscribe and unsubscribe action, remove service action
Add application action but not finished
Will add swfupload function to upload certificate file