Do not return null on empty valid/invalid shares
Link API key to User API Call

Fixes #367
Removed var_dump debug output
Merge pull request #368 from TheSerapher/issue-367

Issue 367