Add branch functionality and handle http based origin
Merge pull request #1 from alevicki/master

Branch and http