FIX: notices and errors in get_connections()

The method get_connections() tries to determine the count of connected entities in a faulty way.
This raises an "undefined property" notice.
Once this is line of code is fixed one gets the following error:

"PHP Fatal error:  Cannot use object of type Entity as array in ..."

This is caused by the following code:
"$this[$connection][$result['entities'][$i]['username']] = $result['entities'][$i];"

Introduced a temporary variable "$tmp_entity" in the for loop for more readability.
FIX: accidentally committed with wrong entity class name

last commit contained a wrong class name for the Entity
Handle malformed responses

When userGrid is down or returns something unexpected this response handler throws an exception because it tries to access properties of undefined.
fixing menu bug
building release files
must_match flag should match all containing '=' (like post.rb already does)
new version
Revert "Handle malformed responses"

This reverts commit 4bfe4e0b559dbc397dc9c5758a6cd6cbf0b09c5c.
Merge pull request #138 from shawnfeldman/master

fix menu bug where its not selecting correctly on refresh
Merge pull request #139 from usergrid/minor-ugc-fix

must_match flag should match all containing '=' (like post.rb already do...
Merge pull request #132 from timwillsie/patch-4

FIX: notices and errors in get_connections()
Handle malformed responses - When userGrid is down or returns something unexpected this response handler throws an exception because it tries to access properties of undefined.
Merge pull request #134 from richardscarrott/master

NodeJS SDK - Handle malformed responses
Ignore logs and awscluster config files.
Merge branch 'master' of https://github.com/usergrid/usergrid
fix menu refresh issue
increment version to 2.0.10
Merge pull request #143 from shawnfeldman/master

menu not selecting item when browser refreshed
bump nodejs sdk version
Merge pull request #148 from richardscarrott/master

bump nodejs sdk version