Splitting server into http and callback