Update of theme functions.

Modified foundation_assets function to include jquery.js, app.css.
Corrected typo in ‘foundation_comptability’ function name. Modified
foundation_pagination function - added this_query object parameter and
handling.