Remove ineffectice code for replacing class names. Our applications work well without it.
artifacts named '*.jar' should not be treated as modules.

this patch ensure local '.jar' artifacts are copied to 'lib/'
instead of extracted to 'modules/'.
named isInsideTransaction() should be used in named closeTx()
Prevent connection leaks: do not create new EntityManager if transaction is not active.

These newly-created EMs are not bound to thread and thus never closed.
This is also how play 1.2.x used to work: no transaction - cannot read from DB.
use JPA.DEFAULT constant, as a few lines above
simplify code: use ThreadLocal's initialValue() to greatly reduce number of null checks
use more efficient iterations and remove unused some code
Allow developers to enable c3p0 logging for eg connection leak debugging via Log4J configuration.
FallbackMLog logs to system error, which is not convenient.
throw JPAExceptions in case of JPA errors instead of RuntimeExceptions - suggestion by xael-fry

catch in isInsideTransaction() is not needed anymore as well, as JPAException is never thrown from the try block
Restore method isInitialized to detect if JPA is initialized
[#1881] Cache annotated method lists already in a sorted state.

This prevents concurrent resorting of cached lists in multiple request threads, which sometimes results in ConcurrentModificationException, especially under Java 8.
[#1883] Upgrade to Joda Time 2.5
Merge pull request #804 from codeborne/fix-transactions

[#1879] Prevent DB connection leaks in Play 1.3.x
Merge pull request #808 from dddpaul/lighthouse-1883-patch

[#1883] Upgrade to Joda Time 2.5
Merge branch 'fix-method-list-caching' of github.com:codeborne/play into codeborne-fix-method-list-caching

Conflicts:
	framework/src/play/utils/Java.java
Merge branch 'codeborne-fix-method-list-caching' into 1.3.x
fixed tests
Merge pull request #803 from ryenus/1.3.x

[#1876] artifacts named '*.jar' should not be treated as modules.
Merge pull request #800 from codeborne/feature/groovy-templates-performance

[#1873] Feature/groovy templates performance
fix against XXE flaw