Better structure. Will remove php files completely by tomorrow and implement jsonrpc in js. Maybe use webgl to paralize  usual sha256.js algorithm