This changeset adds support of max_instances and available_instances.  Resource manager tracks all registered instances, except those in the DELETED state.  Its could_reserve? and numbers reserverable methods responds positively when the total number of undeleted instances fall under the max_instances limit.

incorporated review comments - a) adjusted default max_instances config value; b) expose max_instances as config property