update workaround for celery while building docs
Move API docs out of doc strings into standalone rst files
avoid some indirection in search/submit views

now that the functions are more readable without the detailed API descriptions
seperate general database setup and model classes
split model classes related to the website from the rest
de-duplicate `histogram_days` code and rename it to fit its general purpose