Working on discovery protocol
Added hash test.
Added common constants header.
Discovery protocol working.