Moved statedb to standard directory, and moved contract and genesis block creation to external functions