Re-add URL to menu type=list links
Re-enable bootstrap on internal links.

Use type=GET and url: instead of request:
Add history push to ajax and listener for popstate.

Makes back/forward buttons work for navigating with ajax requests.

Pass data.history to ajax() and it will history.push(data.history)

Added popstate listener to handle navigation via ajax
Renamed blog template to posts to be more consistent with database/URLs
Load posts template instead of blog and add `created` to tags.
Added %DATE% placeholded
Use $_SERVER[REDIRECT_URL] in ajax requests and switch to posts template.

For now, I only have a case for /posts/*, but it is working well and it should
not be too difficult to add other cases.
Added data-history to posts menu to work with ajax navigation.
Created empty PHP script that will hold several commonly used functions.
Handle ajax requests for home, posts, and tags. Removed $_POST[href].

Check if anything is passed in $_REQUEST and if this is a redirect. If neither of
these are true, it is an ajax request for the home page, so send that.

Next, check if this is a redirect with status 200. If so, convert the REDIRECT_URL
to an array by expoding it with '/'. Determine what is requested with 
switch($path[0]).

If none of these are true, continue as we did before.
urlencode(trim($tag)) to make sure that a tag of ' regular expression' works.

That way, we can get it back to the original value more easily using urldecode().

Otherwise, we were trying to get a tag of 'regular expression' from 
'-regular-expression'.

Since this is handled via urldecode when exploding $_SERVER[REDIRECT_URL],
there is no longer any need to store the converted tag as a seperate variable.
Use urlencode and decode on tags.

See commit d59a33146fb3bd249b881fd09cb8e624c921eb32
Switch from data-request and data-history to data-link in posts menu.

This will send out the same request as if clicking on an internal link.
Use ajax({url: location.pathname, type:'GET'}) in window.popstate.

This will navigate as though the link were clicked on, making for more
natural navigation.
Use ajax(url:..., type:'GET',history:...) in bootstrap on internal links and data-link

Once again, this will handle ajax navigation in the same way as if the user
clicked on the link, making navigation more easy and natural.