[framework] Set up framework, including network connection, pinging, gesture detector, gesture listener