Merge pull request #116 from mizaki/master

Fix ambiguous SQL when using UserId.
Ninja/Rogue added to FF14
Fixed some bugs in api_statistics

End was set to a non-unix time value
Now using queries that are closer to what you see in the settings page
Typo fixed
Forced lowercase logins
Surpress setup error message
Removed stray var_dump
Some fixes to attendance api queries
Return stats the same as settings.