ALLJOYN-2046 SessonLostReason added to the SessionLost callback

The SessionListener now has a SessionLost callback that will provide the reason
that the session was lost.

Fixed code that was using deprecated methods. If the unit test is using a
deprecated method to verify its functionality a #param is used to disable
the warning since testing is intended.

Change-Id: I8102555ef7938539f1e42978aace093d6f082a9a