Markup & style fixes for post list statuses

fixes #1703, fixes #1712

- featured star appears immediately for both draft and published items
- featured star is never red & alignment /style is updated
- improved markup and styling of statuses in general
- added to feature tests
Fix unhandled errors in mail.js

fixes #1718

- check for existence of mail before using properties
- return the promise properly
API refactor / cleanup

closes #1303

- removed where and orderBy from being passed from the API through to bookshelf, and ultimately knex
- ordering is now consistent across both front and backend, which fixes #1303
- validated / cleaned up all the API parameters
- added API tests for the status and staticPages parameters
Merge pull request #1704 from ErisDS/featured-star

Markup & style fixes for post list statuses
Merge pull request #1716 from ErisDS/post-order

API refactor / cleanup
Merge pull request #1719 from ErisDS/fix-1718

Fix unhandled errors in mail.js
Escape URL for use in regex
Date helper fix, moment breaks with null values

fixes #1730
Merge pull request #1729 from mjbshaw/escape-regex

Escape URL for use in regex
Merge pull request #1732 from ErisDS/fix-1730

Date helper fix, moment breaks with null values
Don't use unnecessary (and unescaped) regex

closes #1731
Subdirs are now supported, don't say they aren't
Merge pull request #1728 from mjbshaw/clean-admin-regex

Don't use unnecessary (and unescaped) regex
Merge pull request #1733 from mjbshaw/update-config-example

Subdirs are now supported, don't say they aren't
jQuery link and min map 404 fixes

fixes #1652

- removes the min map thing which doesn't work properly #551, #766, #1479