fix path to btsync binary file
fix permissions and ownership
add restart btsync handler
check if shared folders are defined
add variables for web ui
configure web ui if there are no shared folders