Move buckets.rs to server/buckets.rs