Implement new_session=false for get_config operation for #41

This implements new_session=false for the get_config API operation for issue #41 . Needs review and testing. When new_session is not set or equal true, a session is created. When false a session is not created, and the session value is set to 0 in the return. The commit includes some minor code formatting for the get_config function.