moving common pieces of api and server to common package