Code cleanup, additional features

Logging unified.
Permissions to read external storage added.
External storage path queried from environment.
Moved ChangeImageTask into MainActivity.
Orientation change handling for compatibility.
Network cleanup

Do not specify wifi network, wait for any wifi connection.
Unify logging.
Interpret packet contents for start/stop.