fixed registering existing user
moved from File to SQL
changed JSON to jsonp
final jsonp fix
added full api tests