removed the check for referrer on login
fixed bug with broken unpublish functionality

* removed setting the now non-existent 'live' db field in programmes
* tightened up checking for empty attributes when save output to the api index
* added appropriate tests for unpublish functionality to model tests
Merge pull request #603 from unikent/bugs/unpublish

fixed bug with broken unpublish functionality
Merge pull request #602 from unikent/feature/login-redirect

removed the check for referrer on login
Merge pull request #604 from unikent/develop

Pull from develop to master to roll to live.