Add common lib for app side and server side