Fix scheduling if node in more than one partition

I found a bug in cons_res/select_p_select_nodeinfo_set_all.

If a node is part of two (or more) partitions the code will only count the number of cores/cpus in the partition that has the most running jobs on that node.

Patch attached to fix the problem.

I also added an new function to bitstring to count the number of bits in an range (bit_set_count_range) and made a minor improvement of (bit_set_count) while reviewing the range version.

Best regards,
Magnus
Minor format changes from previous commit
Merge branch 'slurm-2.5'

Conflicts:
	src/plugins/select/cons_res/select_cons_res.c
Minor changes to documentation
Minor documentation update for select plugin
Add comments to describe function arguments
Correction to error returned by step request error for too many CPUs

If step requests more CPUs than possible in specified node count of job
allocation then return ESLURM_TOO_MANY_REQUESTED_CPUS rather than
ESLURM_NODES_BUSY and retrying.
Improve error checking for step allocation with min and max node count
Merge branch 'slurm-2.5'

Conflicts:
	doc/man/man1/sbatch.1
Add msec resolution to RFC5424 time stamps in the logs
Add "--enable-rfc5424time-secs" configure parameter

Add milliseconds to default log message header with the (default)
RFC5424 time format. Disable milliseconds logging using the configure
parameter "--enable-rfc5424time-secs". Sample time stamp format is as
follows: "2013-03-13T14:28:17.767-07:00".
Change default log time to ISO 8601 (remove time zone)

Add milliseconds to default log message header (both RFC 5424 and ISO 8601
time formats). Disable milliseconds logging using the configure
parameter "--disable-log-time-msec". Default time format changes to
ISO 8601 (without time zone information). Specify "--enable-rfc5424time"
to restore the time zone information.
Remove temporary testing logic for timer logging
CRAY - Fix SLURM_TASKS_PER_NODE to be set correctly.
Accounting - more checks for strings with a possible `'` in it.
Merge remote-tracking branch 'origin/slurm-2.5'
Add some diagrams to the IBM PE documentation
sreport - Fix by adding planned down time to utilization reports.
Improvements for fault-tolerance work
Record updated job time limit if modified by backfill

Without this change, if the job's time limit is modified down
toward --time-min by the backfill scheduler, update the job's
time limit in the database.