Upgraded Smack API to 4.0.0

Please Review, and may be test further only rough testing has been done.