Inbox tweaks: better metadata handling, peer username now works

The idea behind this patch is to only ever get metadata en-mass when retrieving messages. The app dev can then handle each new message at a pace that makes sense for the hardware/bandwith, etc 
Not sure if we should commit this. If we're going to disable web workers, we should refactor the code.