added search functions and switched to Foundation 5.0

Fixes #41

Adds basic search functionality. 

 * `WHERE name LIKE '%query%'`
 * `ORDER BY is_active, name LIKE 'query%', name`
 * `LIMIT 50`

Also adds a warning about why packages are marked inactive.

Forms, tables and alerts were not working properly, so I also switched to Foundation 5.0. The appearance will 
have changed a bit.

TODO: link to generated JSON and add pagination/rows/sorts.

@tamlyn index is now `index.php`, this means nginx may have to be adjusted.