fixes issue #78 route to secure endpoints

@rcrichton @devcritter  I have implemented support for https endponts in the routes. please take a look and tell me what you think
A debugging message?