Allow for Mongo style ids

Refactored the id checking into one method. We may want to eventually make this so the adapter is in charge of what constitutes a valid id, but at least all of the logic is in one place.