Merge pull request #458 from subvertallchris/primary_key

adds primary_key and has_id_property? methods
modify activerel queries: threadsafe, simpler