add timeout options to commit and push

I committed a container after a big change and tried to push it to my private repository. Since it was such a big change, it took too long to commit and push so docker-py kept timing out. So I added 'timeout' options to these functions (commit and push).