Essays on resource allocation and social choice