synchronize on the fileinfo not the list

list access is already synchronized but the fileinfo class
is not so we need to synchronize all access to it or
create a copy to work from.

Change-Id: I6dbd1a2ef02e9a8ec47517180ea3ce523677754f
Add action mode for files being transferred.

TODO
  Missing code for deletion
  Do we want "open" to have an icon? or keep the caption?
  Merge finished fragment with beam fragment
  add cancel all button?

Change-Id: I23a63fc68b14b650d0651e372480415f4af265ad
add explicit locks for synchronization

Change-Id: Ice9988633e1ec42c716f2152384e3828f470b74a
save state to file

if were backgrounded save state so we can kill the service
this is also a safety incase of reboot or whatever

Change-Id: I25949d6e00c6798a59f7f6233dab68c06a77d5f1
P2pManager: better client initiated disconnect

if client disconnects before sessionComplete is set we end up in limbo.
instead use presence of clients to determine whether to send msg or
disconnect if we just formed this group send message. else if we
have clients send the message. else initiate a disconnect.

Change-Id: I26aa8bc36bf2db09639f7dc3fc3baa2664061a9f
allow sender to cancel transfer

and use fileinfo.status to update ui

Change-Id: I9372fcaa89d9ed9e00c0e5e82b2f023481b1241b
add mimeType to fileInfo

so we can use it to look up icon resources and other stuff

Change-Id: I205034a42be3606cb6568b76b3d7d7763f88ec0d
P2pManager: notify on more actions

Change-Id: I00835fa40935148dfc9cd9b82c3f7f8c609dc7e8
use the new p2p messages to update state

* add missing break that skipped a state

Change-Id: I2b08d832714c5ab59700667cb7c8cbba032674bd