1.calling sequence of setup method changed.
2.The Scanning activity is not finished on back on any occassion from
program.
3. registrationAndDiscovery is done from onCreate ofd scanning activity,
4. Many other changes.