Api keys table
Move js view stuff into view (not api)