Begin refactoring web api pieces of Kivy app into own file