1. Sync to protocol version 3.0.5

2. Update Java API and simulator to use media scan and media optimize
message types (previous defined as background operation message
construct).