Adding new "id only" functionality to record::select() method

It is now possible to return a list of database primary IDs instead of
active records when calling record class' select() method.
This is much faster for calls that return a large number of records.
Merge remote branch 'origin/release' into lightweight_queue