Added offline API

Added AFNetworking library to use reachability.