Fiddling with auto-layout constraints.
Starting to implement mock endpoints and data cache.
Added pragmas.

Plus a little code reorganization.