Update resources.py

Add primary_key as a boolean property of fields on the schema endpoint. This makes generating UI substantially easier in certain scenarios.