Update btsync.php

The function getSecrets was wrong. BitTorrent changes the way the API works so that the $type can be null or encryption. Also modified the function so that it could handle all use cases. Change the function to return an array instead of an object.