used correct resource type reference when adding resource to power plant
restricted the number of resources to double the plant capacity
added ajax support for adding resources on plants