re #766: urllib.urlencode() need str param not unicode, so convert unicode to utf8 string
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
Preliminary fixes and grooming.

* Drop duplicate `-bmX` flags.
* Fix bad initialization of http_ip and http_port.
* Add missing default DEV_NODES.
* Delete unused default NODES.
* Add module docstring and parser desription.
* Do not parrot commands to output.
* Align most names of parser arguments, dict keys and ctx attributes.
* Have parser check commands.
* Drop `status` command.
* Fix bad combination of `with` and `try`.
* Tidy imports.
Group switches by type.

* Derive key from argument automatically.
Remove execute flag from non-executable files.
Do not re-inject defaults. Align rest of settings.

* The Namespace object that the parser returns has all
  fields initialized to the defaults or the user-provided
  values. No need to re-check.
* Align all remaining arguments, keys and attributes.
Remove outdated Windows script.