Added custom sidebar option, and moved sharing scripts to their own include.