Made network calls asynchronous

-Implemented a callback system to make the asynchronous operations
possible
-Made all network calls asynchronous