adding support for https
Revert "Add better-safe-than-sorry checks for callbacks"

This reverts commit 3fece9ec98b81a393de516ec0988b05862fc838d.
set port depending on set option, default http or https
add port to api options
Merge pull request #10 from vid/master

add https support