OS X story format path tweak

* Jonah: fixed inline image syntax when used in tagged stylesheets.
* Fixed the OS X paths so that the targets folder is now inside the app bundle. Thanks @wolfteeth.
* However, story formats will also be sought in another 'targets' folder placed in the same directory as the app bundle. This allows other formats to be installed.
Post-1.4.0 release bugfixes

* Moved the 'Test Play From Here' entry to the top of the passage
right-click menu.
* Fixed external link syntax highlighting.
* Added "vertical-align:bottom" to images to compensate for a
line-height difference in XHTML Transitional and HTML5.
* Fixed the <<nobr>> macro not working if any text follows it.
Unicode fix for build resources

This might ameliorate complaints that non-ASCII characters in build
resources (headers, the StoryIncludes files) cause builds to fail.
Fixed <<choice>>

I unwittingly made the "choice clicked" variable be unique to the links,
not unique to the passages. What should happen is that clicking a
<<choice>> disables all .choice links in the passage, not just itself.
Some variable-related fixes

* Fixed variables used as array indexes not being parsed correctly.
* Fixed syntax highlighting for shorthand <<print>> macros.
* Restored the left positioning of the Sugarcane sidebar.
Minor external link fix

* Added support for "javascript:" URIs in external links, and fixed
"mailto:" syntax highlighting.
* Also fixed it so that 'state' is undefined while script passages are
executed. This should fix a bug with some popular old scripts.
Updated the test play/start at passage feature to not force a variable on headers and to be header agnostic.
Fixed an issue with the new test play code.
Merge pull request #8 from tmedwards/master

Updated the test play/start at passage feature to be header agnostic.
External link syntax parsing changes

* Possibly broken prettylinks are now no longer assumed to be external
relative URIs unless they contain a protocol, or the symbols . / \ or #.
This should make link debugging a bit easier. Thanks tmedwards and
greyelf.
* You can now use external links in the simple link syntax, such as
[[http://example.net]].
* Syntax highlighting updated to match the above.
Updated Wikifier.prototype.subWikify() so that it stops searching once it finds the matching formatter.  Previously, it would continue to iterate over the remainder of the match elements even after finding the matching one.
Fixed a shorthand <<display>> bug + other bugs

* Now, the shorthand macro tag's title won't sometimes be incorrectly
parsed as its first argument.
* Removed the "Delete Passage" menu item in the Story menu, due to an
identical entry being in the Edit menu.
* Added the data: protocol as a valid "external" link protocol.
* External links and variable links are no longer considered broken
links in the IDE.
* Engine: Added the passage() and tags() functions as aliases for
state.history[0].passage.title and state.history[0].passage.tags.
Merge pull request #9 from tmedwards/master

Updated subWikify() to stop searching once it finds the matching formatter.
parameter() and tags() changes

* Fixed annotation passages being drawn too dark in smooth drawing mode.
* Removed the thrown error from parameter() altogether, on the newly
considered basis that it would make variadic widgets difficult.
* Fixed a bug in a previous commit concerning
Wikifier.prototype.fullArgs().
* tags() can now take passage name parameters, much like visited() does.
Fixed obfuscation interfering with backslashes

* Fixed a bug where backslashes would be incorrectly converted to
arbitrary letters if passage obfuscation was being used.
* Added 'header' and 'footer' elements to Jonah's .passage elements, to
provide a bit more symmetry with Sugarcane's DOM layout.
Fixed <<back>> in specific situations

* <<back>> now works better when Undo is off in Sugarcane. Previously it
would mess up the variable state in cases when link variables were in
use.
* <<back>> and <<return>> now work when restoring a Jonah state via
bookmark.
* <<back>> also now works when clicked in a past passage - previously it
would act as if it was in the present passage.
* Fixed the IDE's monospace font using the normal font's size instead of
its own.
Fixed Jonah scrolling in IE 8

Previously it would scroll from the top of the page regardless of scroll
position.
Fixed a:link and visited(), added .visitedLink

* The CSS selector ":link" in stylesheets is now converted to
[class*=Link] at runtime. This is to provide backwards-compatibility for
people who used "a:link" to refer to Twine links (which is no longer
usable as internal links no longer have href attributes). It's a mean
sight of a hack, but so be it - I shan't be adding back the
"javascript:void(0)" href no matter what you say.
* Added the "visitedLink" class, which is applied to passage links that
link to already visited passages. ":visited" is converted to
".visitedLink" much like the above. This provides a surprising deal of
power - you can give .visitedLink "display:none", for instance.
* The StorySettings passage is no longer converted to all-lowercase at
build time. This should make HTML exporting/importing more symmetrical.
StoryTitle related changes

* Improved speed of HTML importing.
* Now, only the StoryTitle passage's text content will be used for the
window title, instead of its raw code.
* Now, if a story has no StoryTitle, or the StoryTitle has no text
content, it will default to the name of the .tws file used to build it,
instead of just "Untitled Story".
* Added a sanity check in case a script overrides
History.prototype.display() but doesn't pass enough arguments.
Re-implemented <<textinput>>

* <<textinput>> creates an <input> text element which, when the passage
is left by any means, sets the passed variable to its string contents.
It may also have an additional parameter, a link expressed in link
syntax, which is used to create a <button> next to it.
* The previous <<textinput>> behaviour of triggering the passage change
via the Enter key has been removed for now.
* Added CSS for black textboxes and buttons to Sugarcane.
* IDE tag colours now cycle based on the hash of the tags, to
differentiate dissimilar ones from a distance.