re #766: urllib.urlencode() need str param not unicode, so convert unicode to utf8 string
Make WHERE clause optional for SQL UPDATE calls

Amend obdb.updateEntries to allow for WHERE clause to be optional.
Include style fixups for node/db_store.py
Merge pull request #772 from freamon/amend_db_update_entries

Make WHERE clause optional for SQL UPDATE calls
Updated JS+CSS include links to be dynamic.
Merge pull request #790 from saltduck/766-unicode-crash

re #766: urllib.urlencode() need str param not unicode
Merge pull request #798 from Klakurka/develop

Updated JS+CSS include links to be dynamic.
fix ignoring -p switch when `-p 12345`

Signed-off-by: Thomas Stilwell <stilwellt@openlabs.co>
Call search_for_my_node in a delayed callback in the ioloop

* search_for_my_node needs to be called after a handshake with a seed is done
* Check every second on start if at least one connection is done before calling
search_for_my_node
intersect peers
Merge pull request #804 from benemorius/default-port-fix

fix ignoring -p switch when `-p 12345`
Merge pull request #781 from yagoulas/search_on_start

Search for myself upon starting up
Dethread and Context Instance

Get current zmq Context instance instead of new context.

Dethread the add peer method
Refactor connection object

Move socket and stream connection to initializer.
Dethread methods

Close socket method call

We need to close up the socket and stream when removing the active peer.
Removed check_port method
Purge create_zmq_socket unused method
Remove DarkMarket sample photos
Merge pull request #769 from hoffmabc/experimental-zmq-fixes

ZeroMQ refactor of socket creation
Refactor network_util.

* Use tornado.netutil to check for valid IPs.
* Abstract protocol in get_peer_url.
* Prefer importing modules than names.
* Other style fixes.
Refactor code in connection.py.

* Drop unused peer_alive attribute.
* Drop unused responses_received attribute.
* Make failure cases stand out in PeerConnection.send_raw.
* Make failure cases stand out in CryptoPeerConnection.start_handshake.
* Straighten CryptoPeerConnection.encrypt.
* Refactor CryptoPeerConnection.send.
  * Make failure cases stand out.
  * Guard against encrypt returning False.
* Drop PeerListener.stop.
  * Do not destroy global context arbitrarily.
* Straighten PeerListener.listen.
* Remove unused import.