You can earn bitcoins simply by providing goods or services which are valuable for other BTC owners.
If you want to take fiat out of equation, replace
BTC owners with
miners. (You can earn bitcoins simply by providing goods or services which are valuable for
miners.) Then enlarge this set by
everyone who sells something to the miners. Then enlarge this set by
everyone who sells something to anyone mentioned in previous sentence. ... Repeat until you are happy.
If you are still unhappy then I guess you ask and yearn for a system of some
fair distribution of bitcoins not determined by individual egoisim and greed of above mentioned iteratively growing set (enlarged by people "rich" in fiat). I hope Bitcoin will
never becomes such "fair" system, it will be its death.
What you ask for can be theoretically achieved by forking (cloning) Devcoin with "this time
the right group of elites". If it can be indeed achieved practically in larger group than a community then Karel Marx was probably right.
Edit: Concerning your
script that judges how many shares something is worth, or if we need a script at all (Democratic voting)
No one have created a script, a program or even formulated an algorithm which would be able to
judge worth of humans achievements. (Although philosophers are trying to formulate such principles for over 2000 years.
And as cpt. Picard said, there is no greater challenge than study of philosophy. :-])
As for democratic voting... I always wonder that (most) people understand that two wolves and a sheep can not
democratically vote "What is for dinner?". But they do not understand that a horde of starving poor (underpayed, exploited, dying children, fairly deserving, etc.) and one rich hoarder of wheat can not
democratically vote "What is for dinner?" either.
(I wonder if they understand that ten thousand wolves and one sheep can not
democratically vote either.)