Merge pull request #2 from bradjc/master

New db code in main file
Make rate limiting a function of the number of users

Running of API limits becomes annoying quickly.
Add ignore rule for vim swapfiles
Python's sleep is second based, not minute-based (silly pat)
Merge pull request #4 from ppannuto/ignore

Add ignore rule for vim swapfiles
Merge pull request #3 from ppannuto/rate_limit

Make rate limiting a function of the number of users
Better handling of db for threaded webserver