changes from cpp-ethereum

contract creation separated from main.js
eth.messages changes to logs as in [JavaScript API](https://github.com/ethereum/wiki/wiki/JavaScript-API)
other small changes