move client code to api
log all ips
Merge pull request #6 from hayksaakian/master

move client code to api