Listed and described shortly max_slave_connections and server_options=slave_selection_criteria parameters.
Removed unnecessary SERVER pointer from dcb.c:dcb_call_foreach(), changed declaration and call accordingly.
get_replication_tree checks for SERVER_IS_DOWN

get_replication_tree checks for SERVER_IS_DOWN, this will produce a
replication tree even with servers in SERVER_IN_MAINT state
root server IN_MAINT returns NULL to caller

the replication tree returns NULL if the root server is maintenance mode
code cleanup

code cleanup
Updated documentation
Merge branch 'develop' of github.com:skysql/MaxScale into develop
maxscale start script

maxscale start script
First implementation LSB compatibility

First implementation LSB compatibility
LSB version of maxscale init script

LSB version of maxscale init script
write MaxScale PID into pidfile

write MaxScale PID into pidfile
Added default MAXSCALE_BASEDIR

Added default /usr/local/skysql/maxscale for MAXSCALE_BASEDIR
Fixed reload with -HUP

Fixed reload with -HUP and added _TERM (that is default anyway)
Added mechanism for choosing slave for a query based on the current load in all connected slaves. Counting operations is not correctly done here. Reading values and choosing accordingly is done.

Fixed several things in session command reply processing.
Added missing comment to get_root_master

Added missing comment to get_root_master
Enabled set and clear the flag BREF_WAITING_RESULT. It is actually a counter which is modified with atomic operations only. Setting and clearing BREF_WAITING_RESULT also includes atomic increment and decrement of corresponding backend server's current operations counter, backend_server->stats.n_current_ops.
Clean up
Added status bit BREF_QUERY_ACTIVE to indicate if a query, other than session command, sent to backend for execution. The flag is cleared when the first packet belonging to the response arrives.
The flag is part of the active operation counting, which is utilized in load balancing. The active operation count per backend is used by default as criteria when router chooses to which backend a query should be routed.
Merge branch 'develop' into MAX-167

Conflicts:
	server/modules/monitor/mysql_mon.c
	server/modules/routing/readwritesplit/readwritesplit.c
failure message in start, for any error

failure message in start, for any error