Network state and command receivers, session issues fixes, and others

Added receivers for network state change so that online flag is up to
date. Broadcast system for network state and appropriate responses from
activities. Fixed session lost problem. Added general request error
displaying. Refactored api layer a bit. Added late details on details
screen.