Various fixes, added proxy support, more examples.