Update ShareDialog.js

Update for #130 to handle creating sharing url where edit might not be the first url parameter.
Update main.js

Update for #130 to handle previewing application when edit is the first url parameter.
Update main.js

Handle bitly case.
Update main.js
Update ShareDialog.js

Handle bitly case
Merge branch 'development' into gh-pages